cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation of TableSorter class partially successful

Former Member
0 Kudos

Greetings, esteemed experts.

I have successfully applied the TableSorter class to my table, and sorting occurs correctly in runtime. The sort is performed in ascending order, which matches the clients' requirement. However, the tooltip text for the sort icon (up/down arrows) remains as 'not sorted', and clicking the icon multiple times does not result in the sort toggling between ascending and descending directions.

All the articles and posts I have read regarding the TableSorter class seem to indicate that this is not consistent with its design.

Any wisdom to share?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorting was not being invoked properly because the field that is being sorted is a time field. The string comparison collator class could not sort the values, so the TableSorter.class Comparator method was modified to parse out hour and minute values. Fortunately, for our application, no other columns in the table have the 'sortable' requirement, so we could customize the class file for the project without impacting any other functionality.