Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 77f2c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Hash.php
Expand Up @@ -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);

Expand Down

0 comments on commit 77f2c8c

Please sign in to comment.