From 2e21761b7f2b18f7eae14e7b4edcb58530a41e0d Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 7 Dec 2020 00:13:59 +0100 Subject: More ordering. --- app/Http/Controllers/ReservationsController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/ReservationsController.php b/app/Http/Controllers/ReservationsController.php index 8f15105..e12e3f7 100644 --- a/app/Http/Controllers/ReservationsController.php +++ b/app/Http/Controllers/ReservationsController.php @@ -34,6 +34,7 @@ class ReservationsController extends Controller $activities = Reservation::where('approved', '1') ->select('operatorCall', 'fromTime', 'toTime', 'specialCall', 'frequencies', 'modes', 'qso') ->orderBy('fromTime', 'asc') + ->orderBy('toTime', 'asc') ->get()->toArray(); $data = [ 'status' => 'OK', @@ -46,6 +47,7 @@ class ReservationsController extends Controller ->select('operatorCall', 'fromTime', 'toTime', 'specialCall', 'frequencies', 'modes', 'qso') ->where('specialCall', $request->input('call-sign')) ->orderBy('fromTime', 'asc') + ->orderBy('toTime', 'asc') ->get() ->toArray(); $data = [ -- cgit v1.2.3