Changes between Initial Version and Version 1 of Ticket #8480


Ignore:
Timestamp:
Jan 24, 2009, 4:05:24 AM (13 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8480

    • Property Owner changed from anonymous to Jared Jurkiewicz
    • Property Component changed from General to Data
  • Ticket #8480 – Description

    initial v1  
    1 According to JavaScript spec, the expression a > b is always true if either a or b is null.  BasicComparator is spec'ed to return 1 if a===null && b!==null and -1 if a!==null && b===null.  However, that's not second case does not hold because a>b is true, thus it returns 1.  That messes up sorts with null values because it effectively says null>999 and 999>null. 
     1According to !JavaScript spec, the expression a > b is always true if either a or b is null.  !BasicComparator is spec'ed to return 1 if a===null && b!==null and -1 if a!==null && b===null.  However, that's not second case does not hold because a>b is true, thus it returns 1.  That messes up sorts with null values because it effectively says null>999 and 999>null.