plugins/kolab_addressbook
Thomas Brüderli
bruederli at kolabsys.com
Wed May 30 18:29:16 CEST 2012
plugins/kolab_addressbook/lib/rcube_kolab_contacts.php | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 44465cb2b08c785f2285c6f3b3bc23aa01e64803
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date: Wed May 30 18:28:49 2012 +0200
Make contact sorting case-insensitive
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
index 0d19e4e..d2d0aad 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php
@@ -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)
More information about the commits
mailing list