Sorting not proper [message #1783125] |
Thu, 08 March 2018 02:15  |
Eclipse User |
|
|
|
Hi,
In NatTable, I have the column which contains a string like String1, String2, String3, String10, String100.
I have used GlazedListsSortModel within my SortHeaderLayer and added SingleClickSortConfiguration.
So when I click on this header it is sorting like below:
For example String1, String3, String2, String100, String10
After sorting it is showing like this :
String1, String10, String100, String2, String3 instead of
String1, String2, String3, String10, String100.
I am not able to catch why so happening?
Is there any solution for same?
Thanks
|
|
|
Re: Sorting not proper [message #1783133 is a reply to message #1783125] |
Thu, 08 March 2018 06:26  |
Eclipse User |
|
|
|
That is the sorting that is done by simply comparing the strings. And this is done by the DefaultComparator we configure by default. If you want a different sorting you need to implement and register a custom comparator.
|
|
|
Powered by
FUDForum. Page generated in 0.06597 seconds