Rollback hotfix. Caused error in tabulation

This commit is contained in:
Matt Young 2024-11-19 18:48:16 -06:00
parent 61df1c4351
commit f071950546
1 changed files with 2 additions and 2 deletions

View File

@ -56,9 +56,9 @@ class RankAuditionEntries
// Sort entries based on their total score, then by subscores in tiebreak order
$entries = $entries->sort(function ($a, $b) {
for ($i = 0; $i < count($a->score_totals); $i++) {
if ($a->score_totals[$i] ?? $b->score_totals[$i] < 0 ?? 0) {
if ($a->score_totals[$i] > $b->score_totals[$i]) {
return -1;
} elseif ($a->score_totals[$i] ?? $b->score_totals[$i] > 0 ?? 0) {
} elseif ($a->score_totals[$i] < $b->score_totals[$i]) {
return 1;
}
}