Defect #6131
closedSort by Group By field does not work
0%
Description
as above...
Files
Related issues
Updated by Felix Schäfer over 14 years ago
- Status changed from New to Closed
- Resolution set to Cant reproduce
Can't reproduce.
See SubmittingBugs.
Updated by Michalis Miatidis over 14 years ago
Sorry, the following scenario in this site reproduces it:
the following query:
produces this result:
Updated by Michalis Miatidis over 14 years ago
As if the sorting is made on some internal key?
Updated by Felix Schäfer over 14 years ago
AFAIK versions are sorted by due date first, and names after that. Still no bug that I can see.
Updated by Jean-Baptiste Barth over 14 years ago
In the screenshot, the groups are not sorted like expected (from a user point of view I mean, this may be a "standard" SQL behavior, I'm not sure). Group 1.1.0 is displayed before group 1.0.1, whereas Michalis asked for a sort by target version ascending.
Updated by Felix Schäfer over 14 years ago
Ah, I think I know what's happening :-)
The "group by" and "sort by" don't influence each other. If you remove the "group by", the issues will be sorted correctly/as expected, if you specify a "group by", the issues inside the groups will be sorted correctly/as expected, but that won't influence the order of the groups. In the case where you select the same attribute to "group by" and "sort by", well, they are sorted "correctly" inside each group, though you don't see anything of it as they all have the same value for that attribute, rendering any sort of sorting moot.
Updated by Jean-Baptiste Barth over 14 years ago
Do you think we should / could find a workaround ?
Updated by Jean-Baptiste Barth over 14 years ago
OH: I just discovered you can "GROUP BY blah ASC" in at least sqlite and mysql. Needs to be tested, but we may have a clean workaround if it's supported on each of our databases and/or by rails adapters.
Updated by Moritz Voss almost 14 years ago
Jean-Baptiste Barth wrote:
OH: I just discovered you can "GROUP BY blah ASC" in at least sqlite and mysql. Needs to be tested, but we may have a clean workaround if it's supported on each of our databases and/or by rails adapters.
It'd be very intuitive to have it grouped, and even choose which way to group in another dropdown (just like the ordering in the other drop downs)
Updated by Etienne Massip over 13 years ago
- Status changed from Reopened to Closed
- Resolution changed from Cant reproduce to Duplicate
Closed as duplicate of #3511.