---
** [tickets:#6958] Better ordinal options for install tool API**
**Status:** open
**Labels:** allura-api
**Created:** Fri Dec 06, 2013 04:41 PM UTC by Dave Brondsema
**Last Updated:** Fri Dec 06, 2013 04:41 PM UTC
**Owner:** nobody
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.
---
Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed
to https://sourceforge.net/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.