Skip to content
Snippets Groups Projects
Verified Commit aaa87cc5 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #11750 TIME 0:05 order filtre case insensitive

parent ea19af40
No related branches found
No related tags found
No related merge requests found
...@@ -1243,10 +1243,11 @@ class ResourceListController ...@@ -1243,10 +1243,11 @@ class ResourceListController
]; ];
} }
private function compareSortOnLabel($a, $b) { private function compareSortOnLabel($a, $b)
if ($a['label'] < $b['label']) { {
if (strtolower($a['label']) < strtolower($b['label'])) {
return -1; return -1;
} elseif ($a['label'] > $b['label']) { } elseif (strtolower($a['label']) > strtolower($b['label'])) {
return 1; return 1;
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment