Feature Requests item #949485, was opened at 2004-05-06 16:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536616&aid=949485&group_id=73068

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: karlhungus (karlhungus)
Assigned to: Nobody/Anonymous (nobody)
Summary: Account for extended ascii strings when sorting

Initial Comment:
Feature: take extended ascii into account when sorting
strings

Solutions:
-Option 1
in RowSorter.checkNullsAndCompare
change the last else condition:
<code>      // if object are not null and don't
implement comparable, compare using string values
            returnValue =
object1.toString().compareTo(object2.toString());</code>

to:
<code>Collator.getInstance().compare(object1.toString(),
object2.toString());</code>


It's simple and it basicly solves the problem
-Option 2
When creating the TableModel in TableTag pass in the
locale and make it an attribute of RowSorter, then 
<code>Collator.getInstance(locale).compare(object1.toString(),
object2.toString());</code>

It's a little more impacting but it sovles the problem
more generally

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536616&aid=949485&group_id=73068


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to