Browse code

php 5.3 compatilble case insensitive repository sorting

Nico Mandery authored on 19/05/2014 09:52:55
Showing 1 changed files
... ...
@@ -46,7 +46,9 @@ class Client extends BaseClient
46 46
         }
47 47
 
48 48
         $allRepositories = array_unique($allRepositories, SORT_REGULAR);
49
-        ksort($allRepositories, SORT_STRING | SORT_FLAG_CASE);
49
+        uksort($allRepositories, function($k1, $k2) {
50
+            return strtolower($k2)<strtolower($k1);
51
+        });
50 52
 
51 53
         return $allRepositories;
52 54
     }