From cbe6661419000c100a77578f31842cbc91c46b98 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Mon, 18 Jan 2016 06:29:13 -0500 Subject: [PATCH] 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. --- lib/race.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.7.4