I believe you are correct.. I ran into the same issue, however, I was able to use a method getPrimaryKeyAsBigDecimal to return a bigdecimal for sorting.
Although, having seen your email, I wish I had just patched NumberKey instead! Eric -----Original Message----- From: Runako Godfrey [mailto:[EMAIL PROTECTED]] Sent: Friday, July 19, 2002 11:07 PM To: [EMAIL PROTECTED] Subject: NumberKey Ordering Apologies if this has already been addressed, but I did not see anything in the archives. I am trying to use a NumberKey to order elements in a TreeMap. Unfortunately, it appears that NumberKeys do not sort properly. The code to ObjectKey (which implements the compareTo method from the Comparable interface) seems to indicate that the compareTo being invoked performs a String comparison, which is incorrect for numeric keys. Is this correct, or am I missing something? Thanks, Runako Godfrey -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
