Skip to content
Permalink
Browse files

Use mb_strtolower in case-insensitive sorting.

We should try to support unicode everywhere people might use it.
  • Loading branch information...
markstory committed Aug 26, 2015
1 parent 9b910df commit 77f2c8cb42f33f807d0fe744380bc661085d1926
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Hash.php
@@ -909,7 +909,7 @@ public static function sort(array $data, $path, $dir = 'asc', $type = 'regular')
}
if ($ignoreCase) {
$values = array_map('strtolower', $values);
$values = array_map('mb_strtolower', $values);
}
array_multisort($values, $dir, $type, $keys, $dir);

0 comments on commit 77f2c8c

Please sign in to comment.
You can’t perform that action at this time.