Skip to main content



      Home
Home » Eclipse Projects » NatTable » Sorting on a grid that has grouped column(Unexpected behavior when sorting on a grid that has a grouped column)
Sorting on a grid that has grouped column [message #1449591] Tue, 21 October 2014 11:21 Go to next message
Eclipse UserFriend
Hello,

This is a question about sorting on a grid that is grouped by a column. When we group by a column, and then sort in ascending order by another column in the grid, the groupedby rows are in ascending order and the contents in the groups are in ascending order. If we want to sort one of the columns in descending order, then the groupedby rows will be sorted in descending order.

Is it expected behavior? Or would we want the grouped by rows to remain in ascending order and the contents in in the groups to be in descending order?

Thank you,
Natalie

------
How to reproduce:
(Using the 1.1.1 examples)
1. Run the GroupBySummaryExample.
2. Group by the Firstname.
3. Sort Age in ascending order
4. Sort Age in descending order

So in this example, when sorting Age in ascending order, the grouped by rows are Bart, Carl, Edna, ... and the ages are sorted from low to high (34, 43, 43, 46, ...). If we sorted Age in descending order, would we want the grouped by rows to be Bart, Carl, Edna, ..., where the ages are sorted from high to low (91, 88, 68, 62, ...)?


Re: Sorting on a grid that has grouped column [message #1449612 is a reply to message #1449591] Tue, 21 October 2014 12:02 Go to previous message
Eclipse UserFriend
https://bugs.eclipse.org/bugs/show_bug.cgi?id=444855
Previous Topic:Setting error message on display converter failure.
Next Topic:Can we public SizeConfig from DataLayer
Goto Forum:
  


Current Time: Mon Jul 28 16:38:21 EDT 2025

Powered by FUDForum. Page generated in 0.03971 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top