I have created a python toolbox containing a number of classes which define the various tools within. As these classes are part of a workflow in which the tools are to be executed sequentially using outputs from the previous tools, it would be very handy if the tools were presented in this order within the box, reinforcing the workflow. However, they appear to be displayed alphabetically. Is there a way to define the order? The tools are entered into the class Toolbox attribute list, self.tools[tool1, tool2] in the proper order, but they are subsequently alphabetized before being displayed.
As @nmpeterson stated, we also had to add a prefix to the tool name to get the desired sorting. However, if memory serves, we used alpha characters first
A- Tool number 1 B- Tool number 2
because if the number of tools creep in to the double digits, the tools will still be sorted alphabetically rather than numerically.
1 - Tool number 1 11 - Tool number 11 2 - Tool number 2