summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-05-30 16:28:49 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-05-30 16:29:29 (GMT)
commitccac5e660adf0dff092f6253446e273b03328073 (patch)
tree7865b0e80ad3eef6a6be8d444d2709ca86637f3e
parent30c1bff8f058ae7fd84b2b75e8ecf121a30a1e64 (diff)
downloadroundcubemail-plugins-kolab-ccac5e660adf0dff092f6253446e273b03328073.tar.gz
Make contact sorting case-insensitiveroundcube-plugins-kolab-0.7.2
-rw-r--r--plugins/kolab_addressbook/lib/rcube_kolab_contacts.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index a01ff52..c251d1e 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -1043,6 +1043,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)