Nick-The-Uncharted / tablefilter-swing

Automatically exported from code.google.com/p/tablefilter-swing
1 stars 1 forks source link

Allow different sorting on choices box #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The sorting on the choices box shows always the data alphabetically sorted.

It would be interesting (see issue 31) to provide ways to modify this sorting 
order.

Original issue reported on code.google.com by coderazzi on 28 Nov 2012 at 1:06

GoogleCodeExporter commented 9 years ago
Repository contains a working solution for this problem, although the API will 
likely change before release.

You can try it by downloading directly the code at the google site
(http://code.google.com/p/tablefilter-swing/source/checkout). If you
do so, you still need to do, on the columns where you expect natural
ordering: getFilterEditor().setAlphabeticalOrderOnChoices(false);

 L.

Original comment by coderazzi on 18 Dec 2012 at 11:10

GoogleCodeExporter commented 9 years ago
The IFilterEditor interface is now extended with a method setChoicesComparator, 
allowing to specify the exact algorithm used to sort (and present) the choices.

Original comment by coderazzi on 12 Mar 2013 at 11:11