From bdbca9f2d5144702da973ddfd90aae74ffe7dcfc Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Fri, 21 Nov 2008 14:39:16 +0000 Subject: [PATCH] Fix of issue 2504, sorting in WinXP. svn: r11325 --- src/DisplayModels/_PeopleModel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DisplayModels/_PeopleModel.py b/src/DisplayModels/_PeopleModel.py index c712243e7..79e3bf3ac 100644 --- a/src/DisplayModels/_PeopleModel.py +++ b/src/DisplayModels/_PeopleModel.py @@ -191,9 +191,9 @@ class NodeTreeMap: return None def build_sub_entry(self, name): - slist = [ (locale.strxfrm(self.sortnames[x]), x) \ + slist = [ (self.sortnames[x], x) \ for x in self.temp_sname_sub[name] ] - slist.sort() + slist.sort(lambda x, y: locale.strcoll(x[0], y[0])) val = 0 for (junk, person_handle) in slist: