Sorting on any case states or properties not work correctly
Gerhard Killesreiter - May 25, 2006 - 13:44
| Project: | Case Tracker |
| Version: | HEAD |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
It you create a view where you can sort on Case ID you will discover that this does not work. The sort only takes the cas part of the ID into account, not the project part.

#1
Same applies to the case priority, case status, case type, assigned to, and project title field. In all cases the sorting works by sorting on the underlying numerical ID. We want the sorting to work on the alphanumerical label.
#2
#3
this is especially a problem when adding a new priority that you want sorted higher than "high".
It's weird too because when you add a new "case state" it clearly asks for the "weight" but that seems to be totally ignored when sorting in the View.
This is a high priority bug IMO.
#4
Yep, looks like casetracker isn't telling Views anything about how to sort, so Views is just sorting by the property's ID.
Seems like it'd be relatively simple to extend views_handler_sort, perhaps in each of the includes/casetracker_views_handler_field_XXX.inc files to tell Views to sort by weight.