aboutsummaryrefslogtreecommitdiff
path: root/app/Http
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-12-07 00:13:59 +0100
committerMateja <mail@matejamaric.com>2020-12-07 00:13:59 +0100
commit2e21761b7f2b18f7eae14e7b4edcb58530a41e0d (patch)
treed3622269eaf5f32b26878674c124fab6bb68959f /app/Http
parentbee1e3a09a7c3de5e9ad0e1dbf593aa643acfc85 (diff)
downloadyota-laravel-1.1.0.tar.gz
yota-laravel-1.1.0.zip
More ordering.v1.1.0
Diffstat (limited to 'app/Http')
-rw-r--r--app/Http/Controllers/ReservationsController.php2
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 = [