Just need to actually do the sorting algorithm, and the geographic sort will be done