From a136cd97df5f0daed49396c7225a0d19b30b2e9b Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 17 Nov 2020 21:34:34 +0100 Subject: [PATCH] Angellist: Fixed sorting --- includes/controller/users_controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 [