fix sort crash on postcodes