Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/DISPL-77 Here is an overview of the issue: --------------------------------------------------------------------- Key: DISPL-77 Summary: Account for extended ascii strings when sorting Type: Bug Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: DisplayTag Components: Paging/Sorting Versions: 1.0 RC1 Assignee: Reporter: fabrizio giustina Created: Fri, 22 Oct 2004 7:40 AM Updated: Fri, 22 Oct 2004 7:40 AM Description: ==== imported from sf tracker id 949485 submitted by karlhungus - karlhungus http://sourceforge.net/support/tracker.php?aid=949485 ==== 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 --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel