order by stuff

This commit is contained in:
2019-06-04 20:54:22 -05:00
parent 676117c053
commit 7ad40daeb9

View File

@@ -175,9 +175,10 @@ class MoonsAdminController extends Controller
$spmn = array();
//Get the moons and put in order by System, Planet, then Moon number
$moons = Moon::all()->orderBy('System', 'ASC')
$moons = Moon::orderBy('System', 'ASC')
->orderBy('Planet', 'ASC')
->orderBy('Moon', 'ASC');
->orderBy('Moon', 'ASC')
->get();
//Push our default value onto the stack
array_push($spmn, 'N/A');