Also consider set losses in Swiss standings to fix early advance wrong order

Closes #2645
Closes #2644
This commit is contained in:
Kalle 2025-11-22 11:10:40 +02:00
parent a42778faf7
commit 300385648b

View File

@ -1498,6 +1498,10 @@ class SwissBracket extends Bracket {
if (a.setWins > b.setWins) return -1;
if (a.setWins < b.setWins) return 1;
// also set losses because we want a team who dropped more sets ranked lower (early advance format)
if (a.setLosses < b.setLosses) return -1;
if (a.setLosses > b.setLosses) return 1;
// TIEBREAKER 2) wins against tied - ensure that a team who beat more teams that are tied with them is placed higher
if (a.lossesAgainstTied > b.lossesAgainstTied) return 1;
if (a.lossesAgainstTied < b.lossesAgainstTied) return -1;