mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Use mb_strtolower in case-insensitive sorting.
We should try to support unicode everywhere people might use it.
This commit is contained in:
parent
9b910dff31
commit
77f2c8cb42
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue