From 775b578a49718ffbcc67fe73f15dfee2cab10370 Mon Sep 17 00:00:00 2001 From: Lupu Gheorghe <46172059+gheorghelupu17@users.noreply.github.com> Date: Sun, 24 Nov 2024 08:14:39 +0200 Subject: [PATCH] fix (#83) --- app/Http/Controllers/RedirectToElectionController.php | 1 + 1 file changed, 1 insertion(+) 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();