For the purpose of ordering, convert nulls to emptystring