fix null sorting