Sorting for cities