From d3a51742be4e27becfb8d90af71a372d33349f12 Mon Sep 17 00:00:00 2001
From: Peter Landgren <peter.talken@telia.com>
Date: Fri, 21 Nov 2008 14:45:14 +0000
Subject: [PATCH] Fix of issue 2504, sorting in WinXP.

svn: r11328
---
 src/gen/db/base.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/gen/db/base.py b/src/gen/db/base.py
index 288b6e041..ee9eb59e2 100644
--- a/src/gen/db/base.py
+++ b/src/gen/db/base.py
@@ -1857,9 +1857,7 @@ class GrampsDbBase(Callback):
         raise NotImplementedError
 
     def sort_surname_list(self):
-        vals = [(locale.strxfrm(item), item) for item in self.surname_list]
-        vals.sort()
-        self.surname_list = [item[1] for item in vals]
+        self.surname_list.sort(locale.strcoll)
 
     def add_to_surname_list(self, person, batch_transaction):
         if batch_transaction: