aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Controllers/ReservationsController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Http/Controllers/ReservationsController.php')
-rw-r--r--app/Http/Controllers/ReservationsController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Http/Controllers/ReservationsController.php b/app/Http/Controllers/ReservationsController.php
index 002645a..8f15105 100644
--- a/app/Http/Controllers/ReservationsController.php
+++ b/app/Http/Controllers/ReservationsController.php
@@ -170,7 +170,8 @@ class ReservationsController extends Controller
]);
if ($request->input('call-sign') == 'all') {
- $activities = Reservation::orderBy('id', 'desc')
+ $activities = Reservation::orderBy('fromTime', 'asc')
+ ->orderBy('toTime', 'asc')
->get()
->toArray();
$data = [
@@ -181,7 +182,8 @@ class ReservationsController extends Controller
return response($data);
} else {
$activities = Reservation::where('specialCall', $request->input('call-sign'))
- ->orderBy('id', 'desc')
+ ->orderBy('fromTime', 'asc')
+ ->orderBy('toTime', 'asc')
->get()
->toArray();
$data = [