Fix team ranking ordering.