]> BookStack Code Mirror - bookstack/blobdiff - app/Sorting/SortSetOperationComparisons.php
Testing: Fixed issues during pre-release testing
[bookstack] / app / Sorting / SortSetOperationComparisons.php
index 0d8e582648e3f8113f682233f424631e128d8ede..e3465231573244b4784cd39fe7401943403f8cde 100644 (file)
@@ -13,12 +13,12 @@ class SortSetOperationComparisons
 {
     public static function nameAsc(Entity $a, Entity $b): int
     {
-        return $a->name <=> $b->name;
+        return strtolower($a->name) <=> strtolower($b->name);
     }
 
     public static function nameDesc(Entity $a, Entity $b): int
     {
-        return $b->name <=> $a->name;
+        return strtolower($b->name) <=> strtolower($a->name);
     }
 
     public static function nameNumericAsc(Entity $a, Entity $b): int