Standing sorting issue
-
Hi, I ran into a standings issue.
I have teams playing 2 and 3 matches so far. When those teams have gotten the same amount of points (e.g. 6 points), the table is now sorted by games played and then points. However, teams having gained 6 points out of 2 matches should be higher in rank than teams having played 3 matches to gain 6 points.
What I did is change the sorting order, and added P (games played) to the sorting order.
1 = PTS (Asc) ==> Points)
2 = GD (Asc) ==> Goals difference
3 = P (Desc) ==> Points
Did not work. Actually, nothing changed.
Next try:
1 = PTS (Asc)
2 = GD (Asc)
2 = P (Desc)
Works sort of, However, but I now end up with twice a 3rd position, and twice a 5th position. And those are also not in the tight order.
Solution:
1 = PTS (Asc)
2 = P (Desc)
2 = GD (Asc)
It now sorts the table like it should. Postions are now listed correct, sorting order is also correct.
Maybe it should work like this by default and I broke something, I don’t know.
But this might help people struggling with the table sorting order.
Example is overhere: https://jodanboyse7.nl/?sp_table=stand-competitie-2014-2015
- The topic ‘Standing sorting issue’ is closed to new replies.