order by stuff
This commit is contained in:
@@ -175,9 +175,10 @@ class MoonsAdminController extends Controller
|
|||||||
$spmn = array();
|
$spmn = array();
|
||||||
|
|
||||||
//Get the moons and put in order by System, Planet, then Moon number
|
//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('Planet', 'ASC')
|
||||||
->orderBy('Moon', 'ASC');
|
->orderBy('Moon', 'ASC')
|
||||||
|
->get();
|
||||||
|
|
||||||
//Push our default value onto the stack
|
//Push our default value onto the stack
|
||||||
array_push($spmn, 'N/A');
|
array_push($spmn, 'N/A');
|
||||||
|
|||||||
Reference in New Issue
Block a user