cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting a table without distinction between UPPERcase and lowercase

Former Member
0 Kudos

Hello experts,

we would like to be able to sort a Webdynpro table (by clicking on a column) without distinguishing upper case and lower case.

Is there a way to have this functionnality using the TableSorter.java utility ?

Thanks' in advance for responding !!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Change the sorting code to use equalsIgnoreCase() instead of equals().

Armin

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you experts,

each of your methods seems to works (Anup's tutorial is very useful indeed),

I think we would use Armin's method changing equals() to equalsIgnoreCase(),

Thanks again !!

former_member192434
Active Contributor
0 Kudos
former_member182374
Active Contributor
0 Kudos

Hi,

In the comparator class use toUpperCase on both elements in the "compare" method.

This should solve your issue.

Omri