Treating null and '' as blanks for purposes of sorting