The first sort is by city, as it now sorts. Then, within each city, it would sort by length. Then, within each distance, it would sort by race name.
So, Denver 5ks would be together, with them ordered by race name. Just an organized way to show results.