Update Sorter to support NaN.

Numbers are prior to NaN (Not-a-Number).