The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


CollationKey class in java

Posted by Sayeed Reza on September 17, 2001 at 4:55 PM

I am using CollationKey class of JDK1.3.1. I am trying to sort string regarding CollationKey. The CollationKey is not appearing as normal hex value. I am trying to explain you by an example. Let say, I have 3 string
2)a a
Normal hex value of number 2 is smaller than 3. When I am sorting, i am getting "aa" before "a a" as ascending. It might happen that the CollationKey of "a a" is bigger than the Collationkey of "aa". How can Iget
the normal order. I have to sort based on CollationKey as I am dealing with some german character like (^a).Any idea Sir? I would be very helpful.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us