The attached patch adds a straightforward Sort handler to Case Tracker, suitable for ordering views of cases in the same order as in state UI widgets.

Since I was right there, I also cleaned up the redundancy "Case Tracker: Case Tracker: State Names" for the State Names sort handler.

Comments

hanoii’s picture

Title: Add State Weight Views Sort Handler » Add state weight views sort handler and state relationships
StatusFileSize
new1.9 KB

went a little bit more ahead and added the weight as a field (so it can be used in a table to sort) as well as added relationship to link the priority and type of a case to its states.

Grayside’s picture

Assigned: Grayside » Unassigned

Looks good at a glance, but this needs someone else to review :)

basvredeling’s picture

Simple and awesome patch. Solves sorting issues on case priority (weight sorting makes more sense than name sorting).
I also added a missing help text on a project relationship.

asonderer’s picture

Patch #3 working for me on D6, though now I need to find the equivalent for Priority Weight sorting ... :D