Implemented ticket #271
"Sorting a table with many NaNs is sometimes unsuccessful"
Authored by: numere 2018-01-20
Parent: [r255]
Child: [r257]