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();