From 931f3ba10df69abcbce2f0974a1010de1df0e4d7 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 19 Aug 2023 14:17:42 +0200 Subject: [PATCH] Sort shift types by name --- includes/controller/shifttypes_controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/controller/shifttypes_controller.php b/includes/controller/shifttypes_controller.php index 800034fc..0f1cdfe4 100644 --- a/includes/controller/shifttypes_controller.php +++ b/includes/controller/shifttypes_controller.php @@ -122,7 +122,7 @@ function shifttype_controller() */ function shifttypes_list_controller() { - $shifttypes = ShiftType::all(); + $shifttypes = ShiftType::all()->sortBy('name', SORT_NATURAL | SORT_FLAG_CASE); return [ shifttypes_title(),