Sort most recent event first when adding entries. master
authorCMDR furrycat <elite@furrycat.net>
Thu, 9 Feb 2017 14:58:01 +0000 (09:58 -0500)
committerCMDR furrycat <elite@furrycat.net>
Thu, 9 Feb 2017 14:58:01 +0000 (09:58 -0500)
lib/entry.php

index 761f805..34b7a41 100644 (file)
     }
 
     $rq = new RaceQuery;
+    $rq->joinWith('Race.Event');
+    $rq->orderBy('Event.StartTime', 'desc');
+    $rq->orderByClassName();
     $races = $rq->find();
     if (! count($races)) {
       echo "<p>Add races before submitting entries.</p>\n";