diff --git a/app/Http/Controllers/RedirectToElectionController.php b/app/Http/Controllers/RedirectToElectionController.php index 98c60dd..fc067ca 100644 --- a/app/Http/Controllers/RedirectToElectionController.php +++ b/app/Http/Controllers/RedirectToElectionController.php @@ -13,6 +13,7 @@ public function __invoke(?Election $election = null): RedirectResponse { $election ??= Election::query() ->where('is_visible', true) + ->orderBy('type') ->latest() ->first();