From: CMDR furrycat Date: Mon, 18 Jan 2016 11:29:13 +0000 (-0500) Subject: Station order when adding a new race. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=cbe6661419000c100a77578f31842cbc91c46b98;p=furrycat%2Frace-o-matic.git Station order when adding a new race. Order stations by most recently-added system, as usually systems will be added in preparation for a new race. --- diff --git a/lib/race.php b/lib/race.php index 4509942..cd629f3 100644 --- a/lib/race.php +++ b/lib/race.php @@ -213,7 +213,7 @@ function add_race($name, $allotted_time) { $sq = new StationQuery; $sq->joinWith('Station.System'); - $stations = $sq->orderBy('System.Name')->orderByName()->find(); + $stations = $sq->orderBySystemId('desc')->orderByName()->find(); $posted = array(); foreach ($_POST as $k => $v) {