I currently do not see the issue with the sorted standings, so I will just explain what the formula does.
=SORT(FILTER($AP$2:$BJ$21,$AQ$2:$AQ$21<>""),6,FALSE,4,FALSE,5,TRUE,7,FALSE,9,FALSE,2,TRUE)
For your purposes, ignore this part:
=SORT(FILTER($AP$2:$BJ$21,$AQ$2:$AQ$21<>""),
The numbers at the end indicate each column that it is sorting. The columns that are stated first are sorted first. The numbers correspond to the column number in the range provided in the
SORT function, so in this case
AP2:BJ13. Start counting from column
AP to the right 6 times (for column index 6) and you will find that the first column that is sorted is
AU, which is the "Points" column.
As for
TRUE and
FALSE,
TRUE indicates sorting in ascending order (lowest to highest), and
FALSE indicates sorting in descending order (highest to lowest).
Currently, the formula sorts in this priority:
Points (descending) > Sets Won (descending) > Sets Lost (ascending) > Games Won (descending) > Differential (descending) > Alphabetical Order (ascending) which
should be what you want for your desired result. For the example you mentioned, as sets won / sets lost (inversely) has a higher sorting priority than games won, a 2-2 player should always be above a 1-3 player regardless of their games won.
Hope this helps! If you have any more questions, feel free to reach out to me
