This is more of a \'Can you explain this\' type of question than it is anything else.
I came across a problem at work where we were using NaN values in a table, but
I believe that's because
a < NaN == false a > NaN == false a == NaN == false
so the comparison on them breaks down, and that throws off the entire sort.