Fixing the order of some admin enums when modified through web-admin or trac-admin. Deleting a value left holes in the order, and made some strange ranges over time. Passes tests, and added some more to test the reordering.
As far as I can see, it is the name of the option (like 'defect') that is stored everywhere, with the order value is only used for display. Hope this assumption holds :-)