diff options
author | Mateja <mail@matejamaric.com> | 2020-12-07 00:13:59 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-12-07 00:13:59 +0100 |
commit | 2e21761b7f2b18f7eae14e7b4edcb58530a41e0d (patch) | |
tree | d3622269eaf5f32b26878674c124fab6bb68959f /app/Http/Controllers/ReservationsController.php | |
parent | bee1e3a09a7c3de5e9ad0e1dbf593aa643acfc85 (diff) | |
download | yota-laravel-1.1.0.tar.gz yota-laravel-1.1.0.zip |
More ordering.v1.1.0
Diffstat (limited to 'app/Http/Controllers/ReservationsController.php')
-rw-r--r-- | app/Http/Controllers/ReservationsController.php | 2 |
1 files changed, 2 insertions, 0 deletions
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 = [ |