Make contact sorting case-insensitive
This commit is contained in:
parent
c3ad7d9af1
commit
44465cb2b0
1 changed files with 3 additions and 0 deletions
|
@ -987,6 +987,9 @@ class rcube_kolab_contacts extends rcube_addressbook
|
|||
$a_value .= is_array($a['email']) ? $a['email'][0] : $a['email'];
|
||||
$b_value .= is_array($b['email']) ? $b['email'][0] : $b['email'];
|
||||
|
||||
$a_value = mb_strtolower($a_value);
|
||||
$b_value = mb_strtolower($b_value);
|
||||
|
||||
// return strcasecmp($a_value, $b_value);
|
||||
// make sorting unicode-safe and locale-dependent
|
||||
if ($a_value == $b_value)
|
||||
|
|
Loading…
Add table
Reference in a new issue