From f0719505460eb2d2178b540f845caa141186a3de Mon Sep 17 00:00:00 2001 From: Matt Young Date: Tue, 19 Nov 2024 18:48:16 -0600 Subject: [PATCH] Rollback hotfix. Caused error in tabulation --- app/Actions/Tabulation/RankAuditionEntries.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Actions/Tabulation/RankAuditionEntries.php b/app/Actions/Tabulation/RankAuditionEntries.php index 16d3124..e593462 100644 --- a/app/Actions/Tabulation/RankAuditionEntries.php +++ b/app/Actions/Tabulation/RankAuditionEntries.php @@ -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; } }