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...