Referring to the below post I returned a comparator and now I am getting the correct result.
https://forums.smartclient.com/forum...sortnormalizer
I tried by overriding the sort nomalizer as given below.
Code:
field.setSortNormalizer((record, fieldName) -> { Comparator<String> comparator = (o1, o2) -> o1.compareTo(o2); return comparator; });
If I log anything inside the body of comparator that log is not getting printed.
Also even if I return any integer from comparator I am getting the correct sorted result. Looks like the comparator body is ignored.
Leave a comment: