[ http://jira.codehaus.org/browse/DISPL-206?page=all ]
fabrizio giustina closed DISPL-206:
-----------------------------------
Resolution: Fixed
fixed in cvs.
Makes sense: when sorting strings nulls are now sorted like empty strings.
> Sorting of null incorrect
> -------------------------
>
> Key: DISPL-206
> URL: http://jira.codehaus.org/browse/DISPL-206
> Project: DisplayTag
> Type: Bug
> Components: Paging/Sorting
> Versions: 1.0
> Reporter: dcheng
> Fix For: 1.1
>
>
> Shouldn't nulls be less than any object which isn't null? When sorting
> columns, null values appear at the top when sorting in descending order.
> See rowsorter(lines 160-167):
> else if (object1 == null && object2 != null)
> {
> returnValue = 1;
> }
> else if (object1 != null && object2 == null)
> {
> returnValue = -1;
> }
> If possible, could the return values be flipped around or an attribute added
> to display:column to let user choose whether nulls should be greatest or the
> least.
> Thanks,
> David
--
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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel