From c35980e656a0bb74f2ddf1ec5addacaf8d592f13 Mon Sep 17 00:00:00 2001 From: Speidy674 Date: Sat, 18 Jul 2026 22:05:55 +0200 Subject: [PATCH] sort teams by lower name --- app/Http/Controllers/TeamController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TeamController.php b/app/Http/Controllers/TeamController.php index 32cb9eef..cdda5bd7 100644 --- a/app/Http/Controllers/TeamController.php +++ b/app/Http/Controllers/TeamController.php @@ -19,7 +19,7 @@ public function __invoke(Request $request): View ->orderBy('id') ->with([ // i think this is the fairest way to sort it - 'users' => fn (Relation $builder): Relation => $builder->orderBy('id')] + 'users' => fn (Relation $builder): Relation => $builder->orderByRaw('LOWER(name)')] ) ->get();