[richfaces-issues] [JBoss JIRA] Commented: (RF-2915) Table sorting bug - it sorts by toString() value, not Integer, Date etc (Comparable implementations in general)
Sei Syvalta (JIRA)
jira-events at lists.jboss.org
Mon Apr 21 03:48:57 EDT 2008
[ http://jira.jboss.com/jira/browse/RF-2915?page=comments#action_12409728 ]
Sei Syvalta commented on RF-2915:
---------------------------------
I agree this renders sorting nearly unusable. Would it be possible to have SR2 release or something fixing most severe bugs like this (because currently there are several hundreds of issues assigned to 3.2.1).
An additional suggestion about JIRA usage: How about assigning things that will be fixed in 3.2.x to "3.2.x version" and assigning them from there to a next version to be released. Hmm, that was very badly explained. So, for an example, when you released 3.2, you would pick most severe issues to 3.2.1 and leave others in 3.2.x. When 3.2.1 is nearing release, you would create 3.2.2 and start assigning issues there (but most issues would still be at 3.2.x). This would make JIRA much more usable, as now users have no idea which issues will be fixed in 3.2.1, as most of them will moved to 3.2.2 when release of 3.2.1 becomes nearer. Sorry about off topic...
> 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: Maksim Kaszynski
> 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
More information about the richfaces-issues
mailing list