Project

General

Profile

Actions

Defect #6131

closed

Sort by Group By field does not work

Added by Michalis Miatidis over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
2010-08-13
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

as above...


Files

Query.gif (9.47 KB) Query.gif Michalis Miatidis, 2010-08-13 13:04
Result.gif (5.77 KB) Result.gif Michalis Miatidis, 2010-08-13 13:05

Related issues

Is duplicate of Redmine - Feature #3511: Ability to sort issues by grouped columnClosedJean-Philippe Lang2009-06-18

Actions
Actions #1

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.

Actions #2

Updated by Michalis Miatidis over 14 years ago

Sorry, the following scenario in this site reproduces it:

the following query:

produces this result:

Actions #4

Updated by Michalis Miatidis over 14 years ago

As if the sorting is made on some internal key?

Actions #5

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.

Actions #6

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.

Actions #7

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.

Actions #8

Updated by Jean-Baptiste Barth over 14 years ago

Do you think we should / could find a workaround ?

Actions #9

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.

Actions #10

Updated by Moritz Voss about 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)

Actions #11

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.

Actions

Also available in: Atom PDF