Fix sorting of nulls and numbers, fixes #78