From 1ac779f490026b1c7188d0f96decded09750c9f7 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 10 May 2010 15:43:17 -0400
Subject: [PATCH] - Use strcoll instead of strcmp when sorting contacts in autocomplete

---
 program/steps/mail/autocomplete.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc
index 4e6c617..2fb5eb6 100644
--- a/program/steps/mail/autocomplete.inc
+++ b/program/steps/mail/autocomplete.inc
@@ -77,7 +77,7 @@
 {
   $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, '" '));
 }
 
 ?>

--
Gitblit v1.9.1