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
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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel