summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-10 19:43:17 +0000
committeralecpl <alec@alec.pl>2010-05-10 19:43:17 +0000
commit1ac779f490026b1c7188d0f96decded09750c9f7 (patch)
tree7f5c619cb85b6e8c792a396a9d08e09c665c3ac0 /program/steps/mail
parent25fdec592dc0a37c6ccb0d566e288807aacf9114 (diff)
- Use strcoll instead of strcmp when sorting contacts in autocomplete
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/autocomplete.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc
index 4e6c617d3..2fb5eb6db 100644
--- a/program/steps/mail/autocomplete.inc
+++ b/program/steps/mail/autocomplete.inc
@@ -77,7 +77,7 @@ function contact_results_sort($a, $b)
{
$name_a = is_array($a) ? $a['name'] : $a;
$name_b = is_array($b) ? $b['name'] : $b;
- return strcmp(trim($name_a, '" '), trim($name_b, '" '));
+ return strcoll(trim($name_a, '" '), trim($name_b, '" '));
}
?>