Fix of issue 2504, sorting in WinXP.
svn: r11332
This commit is contained in:
parent
6f0c13ba5d
commit
2876068bdf
@ -1857,9 +1857,7 @@ class GrampsDbBase(Callback):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def sort_surname_list(self):
|
def sort_surname_list(self):
|
||||||
vals = [(locale.strxfrm(item), item) for item in self.surname_list]
|
self.surname_list.sort(locale.strcoll)
|
||||||
vals.sort()
|
|
||||||
self.surname_list = [item[1] for item in vals]
|
|
||||||
|
|
||||||
def add_to_surname_list(self, person, batch_transaction):
|
def add_to_surname_list(self, person, batch_transaction):
|
||||||
if batch_transaction:
|
if batch_transaction:
|
||||||
|
Loading…
Reference in New Issue
Block a user