[ http://jira.jboss.com/jira/browse/RF-2915?page=all ]
Mikhail Vitenkov closed RF-2915.
--------------------------------
Assignee: Mikhail Vitenkov (was: Tsikhon Kuprevich)
Data with following type was tested for sorting: int, String, boolean, Date,
double, float. Sorting works well.
Verified at 3.2.1.CR4
> Table sorting bug - it sorts by toString() value, not Integer, Date etc
> (Comparable implementations in general)
> ---------------------------------------------------------------------------------------------------------------
>
> Key: RF-2915
> URL: http://jira.jboss.com/jira/browse/RF-2915
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Reporter: Kris Kempa
> Assigned To: Mikhail Vitenkov
> Priority: Critical
> Fix For: 3.2.1
>
>
> When using new rich:column's sortBy attribute it improperly treats all data
> as Strings when performing sorting comparisons. So for example in case of
> ascendant sorting of two integers, "10000" will improperly appear before
> "9". Why don't you just use Comparable methods for values which implements
> this interface?
> Inability of using Dates, Numbers etc. renders sorting functionality quite
> unusable in real world applications.
> Looks like Scrollable datatable is subject to this issue, too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues