sort distances numerically instead of alphabetically