From: CMDR furrycat Date: Fri, 29 Jan 2016 11:31:39 +0000 (-0500) Subject: Order those who did not cut short ahead of those who did. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=d971e4dd11c2432fce040eebfb589b0608a8291a;p=furrycat%2Frace-o-matic.git Order those who did not cut short ahead of those who did. --- diff --git a/lib/race.php b/lib/race.php index 2b4bf6e..b3d0266 100644 --- a/lib/race.php +++ b/lib/race.php @@ -342,8 +342,11 @@ affecting endurance races. Ordering by bonus time will allow a racer who didn't use the joker to win a tiebreak with one who did. + Ordering by cut short endorsement will penalise those who didn't + compete for the full race time but only when tied for penalty. */ - $entries = $eq->orderByTotalDistance('desc')->orderByPenaltyTime()->orderByTotalTime()->orderByBonusTime()->find(); + $eq->addAsColumn('CutShort', 'Endorsements & ' . Entry::EndorsementValue('c')); + $entries = $eq->orderByTotalDistance('desc')->orderByPenaltyTime()->orderBy('CutShort')->orderByTotalTime()->orderByBonusTime()->find(); if (! $action) { echo "

" . $race->getLink() . "

\n"; continue;