Skip to content

Commit 77f2c8c

Browse files
committed
Use mb_strtolower in case-insensitive sorting.
We should try to support unicode everywhere people might use it.
1 parent 9b910df commit 77f2c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Cake/Utility/Hash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ public static function sort(array $data, $path, $dir = 'asc', $type = 'regular')
909909
}
910910

911911
if ($ignoreCase) {
912-
$values = array_map('strtolower', $values);
912+
$values = array_map('mb_strtolower', $values);
913913
}
914914
array_multisort($values, $dir, $type, $keys, $dir);
915915

0 commit comments

Comments
 (0)