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
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

Gerhard Killesreiter - May 25, 2006 - 13:47

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

zero2one - May 30, 2008 - 05:34
Status:active» closed

#3

bradezone - November 6, 2009 - 21:32
Title:sorting on case ID does not work correctly» sorting on case ID or priority does not work correctly
Priority:normal» critical
Status:closed» active

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

mcrittenden - November 13, 2009 - 19:18
Title:sorting on case ID or priority does not work correctly» Sorting on any case states or properties not work correctly

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.

 
 

Drupal is a registered trademark of Dries Buytaert.