change ORDER BY for teams
fix order by