Fixes incorrect sorting of records when press on the column name more th...

...an two times.

Additional zencmp comparison function which treats float nan value as zero.