Better sorting of teams