sorting nulls last bugfix