diff --git a/includes/controller/users_controller.php b/includes/controller/users_controller.php index 5c28b201..d8da9f1b 100644 --- a/includes/controller/users_controller.php +++ b/includes/controller/users_controller.php @@ -6,6 +6,7 @@ use Engelsystem\Models\User\User; use Engelsystem\ShiftCalendarRenderer; use Engelsystem\ShiftsFilter; use Illuminate\Database\Eloquent\Collection; +use Illuminate\Support\Str; /** * Route user actions. @@ -300,7 +301,7 @@ function users_list_controller() $data[$key] = $value; }); - return isset($data[$order_by]) ? $data[$order_by] : null; + return isset($data[$order_by]) ? Str::lower($data[$order_by]) : null; }); return [