Rollback hotfix. Caused error in tabulation
This commit is contained in:
parent
61df1c4351
commit
f071950546
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue