Bug 133154 - Add indicator for multi column sorting
Summary: Add indicator for multi column sorting
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-24 09:43 EST by Stefan Lötscher CLA
Modified: 2020-12-10 06:51 EST (History)
10 users (show)

See Also:


Attachments
Multicolumn sorting example (wihout native indicator support) (49.38 KB, image/png)
2006-03-24 09:46 EST, Stefan Lötscher CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?