• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

sort using display table

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

I'm using display table to list search results , i want to sort data in some columns,
when i use sort property it works well but it sort upper case letters first then sort lower case.

if there is any solution to sort the result alphabtic even if start with capital or small letters

thanks for advance

sherif
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Set the comparator? I don't know what their default one does. Try using the Java case-insensitive one instead.
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,


As David says,

Set the comparator? I don't know what their default one does. Try using the Java case-insensitive one instead.



Comparator also sort in the same ways....

Hi sherif hathout,

First see Java make sort also in the same way..... You want to make your list ASC and DES order not sorting....

Java Sorting also gives first small and then capital no matter with character .......

So, i think you have make like when user click on sort button submit your form and select your list form database with ascending and descending query and use this list....





 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Nishan: What? I'm saying if he uses the case insensitive comparator it ignores case, which is what I thought he said he wanted.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic