I'm trying to create a league table for 4 teams, but when I sort the array where the data is stored by the Y, it sorts every column alphabetically.
I need to sort the array by the points of the team, and then retrieve the team name of the first, second, etc, places.
But when I do it, the points column gets sorted correctly, but the teams names sort alphabetically too.
Can you help here?