Bug 133154

Summary: Add indicator for multi column sorting
Product: [Eclipse Project] Platform Reporter: Stefan Lötscher <stefan.loetscher>
Component: SWTAssignee: Steve Northover <steve_northover>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: andreas, b.michael, daniel.kruegler, laeubi, mike.rumpf, mlists, philip.wenig, Silenio_Quarti, steve_northover, veronika_irvine
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Multicolumn sorting example (wihout native indicator support) none

Description Stefan Lötscher CLA 2006-03-24 09:43:12 EST
Hi

There is already support for sort indicator for one column. It should be possible to have the same for multi-column sorting. The sorting order must not be visualized in table. This can be done by the otherwise.
Comment 1 Stefan Lötscher CLA 2006-03-24 09:46:25 EST
Created attachment 36886 [details]
Multicolumn sorting example (wihout native indicator support)

Visualization of multi column sort indicator not done in table itself. Order of columns in drop-down indicate the sort order.
Comment 2 Steve Northover CLA 2006-03-29 15:59:27 EST
Not sure what this is.  Is it a request for a popup menu?
Comment 3 Stefan Lötscher CLA 2006-03-30 05:58:54 EST
(In reply to comment #0)
No, it has nothing to do with a popup menu. The screen shot is just an example how we visualized the order of the sorting if you have more than one column sorted a the same time.

The thougt is that we need an interface on the Table class that looks as follows to support multi column  sorting with native sort indicators.

<code>
public TableColumn[] getSortColumns();
public void setSortDirection(int sortDirection, int columnIndex);
public void addSortColumn (TableColumn column);
public removeSortColumn (TableColumn column);

Comment 4 Steve Northover CLA 2006-03-30 10:13:50 EST
Ok, I understand.  VI or SSQ, which platform had the restriction that there could only be a single sort column?
Comment 5 Daniel Krügler CLA 2009-02-18 02:53:11 EST
(In reply to comment #3)
[..]
> The thougt is that we need an interface on the Table class that looks as
> follows to support multi column  sorting with native sort indicators.
> 
> <code>
> public TableColumn[] getSortColumns();
> public void setSortDirection(int sortDirection, int columnIndex);
> public void addSortColumn (TableColumn column);
> public removeSortColumn (TableColumn column);

Basically I agree, but I strongly suggest that at least
additional a setter

void setSortColumns(TableColumn[] columns);

is provided. This is much more powerful than add/removeColumn
and history shows that usually such a request will follow
later. Just have a look at StructuredViewer#setFilters compared
to StructuredViewer#addFilter/StructuredViewer#removeFilter.



Comment 6 Christoph Laeubrich CLA 2020-01-26 09:55:23 EST
May I ask if there is any progress on this?