diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-10 19:43:17 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-10 19:43:17 +0000 |
| commit | a762e8b2830176c39147519decb0358660d32c91 (patch) | |
| tree | 9ceb0f8f6794d353b74d0a75e71bd66b25feda3f /roundcubemail/program | |
| parent | 6fff44f3105cdd49b12a8951be79336e329bacd7 (diff) | |
- Use strcoll instead of strcmp when sorting contacts in autocomplete
git-svn-id: https://svn.roundcube.net/trunk@3609 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/steps/mail/autocomplete.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/autocomplete.inc b/roundcubemail/program/steps/mail/autocomplete.inc index 4e6c617d3..2fb5eb6db 100644 --- a/roundcubemail/program/steps/mail/autocomplete.inc +++ b/roundcubemail/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, '" ')); } ?> |
