I have a soccer table and I want it to automatically sort who is in first place, second, etc, when I change the values.
My table is this:
"Casa" are the home games; "Fora" are away games.
J = Games played
V = Victory
E = Draw
D = Defeat
GM = Goals scored
GS = Goals conceded
DIF = Goal difference
P = Points
The table is full of functions. If I change the goals scored in away games and the number of draws for example, it will change all the totals.
I want the points to sort automatically so the first team is the one with more points. How can I do this?
My table is this:
"Casa" are the home games; "Fora" are away games.
J = Games played
V = Victory
E = Draw
D = Defeat
GM = Goals scored
GS = Goals conceded
DIF = Goal difference
P = Points
The table is full of functions. If I change the goals scored in away games and the number of draws for example, it will change all the totals.
I want the points to sort automatically so the first team is the one with more points. How can I do this?