#6958 Better ordinal options for install tool API


The install_tool API doesn't have any options for setting the order of a new tool. (And the hard-coded calculation for 'ordinal' uses len(installable_tools) which isn't correct so the ordinal ends up kind of random).

Options I think we should have:

  • last: make it last
  • first: make it first
  • alpha_tool: sort it alphabetically amidst the tools of that type already installed. I think it's fair to assume the rest of the tools are already sorted, so can just loop through them until you find one where the name comes later, and then insert before that.

There are lots of possibilities, but alpha_tool is primary use case at the moment.


  • Cory Johns

    Cory Johns - 2013-12-09
    • status: open --> in-progress
    • assigned_to: Cory Johns
  • Cory Johns

    Cory Johns - 2013-12-09
    • status: in-progress --> code-review
    • Size: --> 1
  • Cory Johns

    Cory Johns - 2013-12-09


  • Tim Van Steenburgh

    • QA: Tim Van Steenburgh
  • Tim Van Steenburgh

    • status: code-review --> closed

Log in to post a comment.