Message: The following issue has been re-assigned.
Assignee: fabrizio giustina (mailto:[EMAIL PROTECTED]) --------------------------------------------------------------------- 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: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: DisplayTag Components: Paging/Sorting Versions: 1.0 RC1 Assignee: fabrizio giustina Reporter: fabrizio giustina Created: Fri, 22 Oct 2004 7:40 AM Updated: Tue, 16 Nov 2004 2:04 PM 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: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel