mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
Also consider set losses in Swiss standings to fix early advance wrong order
Closes #2645 Closes #2644
This commit is contained in:
parent
a42778faf7
commit
300385648b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user