Allow for ranks with spaces
Correct sorting of ranks of team page