Use mb_strtolower in case-insensitive sorting.

We should try to support unicode everywhere people might use it.
This commit is contained in:
mark_story 2015-08-25 21:49:10 -04:00
parent 9b910dff31
commit 77f2c8cb42

View file

@ -909,7 +909,7 @@ class Hash {
} }
if ($ignoreCase) { if ($ignoreCase) {
$values = array_map('strtolower', $values); $values = array_map('mb_strtolower', $values);
} }
array_multisort($values, $dir, $type, $keys, $dir); array_multisort($values, $dir, $type, $keys, $dir);