aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-addressbook-view.c
diff options
context:
space:
mode:
authorSuresh Chandrasekharan <suresh.chandrasekharan@sun.com>2004-05-11 08:42:19 +0800
committerSuresh Chandrasekharan <kcsuresh@src.gnome.org>2004-05-11 08:42:19 +0800
commit47ff96778e8d84e6906f3ae5e2f5a61147461ea6 (patch)
tree6ae00bc94d6fec4d74f603e5f2c9027b4e391bc2 /addressbook/gui/widgets/e-addressbook-view.c
parente1b9b7b34dcd729658fa5b6458feeb5a5f1a5bac (diff)
downloadgsoc2013-evolution-47ff96778e8d84e6906f3ae5e2f5a61147461ea6.tar
gsoc2013-evolution-47ff96778e8d84e6906f3ae5e2f5a61147461ea6.tar.gz
gsoc2013-evolution-47ff96778e8d84e6906f3ae5e2f5a61147461ea6.tar.bz2
gsoc2013-evolution-47ff96778e8d84e6906f3ae5e2f5a61147461ea6.tar.lz
gsoc2013-evolution-47ff96778e8d84e6906f3ae5e2f5a61147461ea6.tar.xz
gsoc2013-evolution-47ff96778e8d84e6906f3ae5e2f5a61147461ea6.tar.zst
gsoc2013-evolution-47ff96778e8d84e6906f3ae5e2f5a61147461ea6.zip
Fixes bug #44196 addressbook table view uses ASCII sort
2004-05-10 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Fixes bug #44196 addressbook table view uses ASCII sort svn path=/trunk/; revision=25851
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-view.c')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index cf51653cd9..0c36039701 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -1638,8 +1638,18 @@ compare_subitems (const void *a, const void *b)
{
const ESearchBarSubitem *subitem_a = a;
const ESearchBarSubitem *subitem_b = b;
+ char *collate_a, *collate_b;
+ int ret;
- return strcoll (subitem_a->text, subitem_b->text);
+ collate_a = g_utf8_collate_key (subitem_a->text, -1);
+ collate_b = g_utf8_collate_key (subitem_b->text, -1);
+
+ ret = strcmp (collate_a, collate_b);
+
+ g_free (collate_a);
+ g_free (collate_b);
+
+ return ret;
}
static void