4657: The "sort as" name is ignored

svn: r16673
This commit is contained in:
Michiel Nauta
2011-02-19 14:06:21 +00:00
parent 0554608916
commit 756bd836a0
9 changed files with 13 additions and 18 deletions

View File

@@ -131,8 +131,8 @@ class QMLPersonListModel(QtCore.QAbstractListModel):
# use cursor as a context manager
with self.gen_cursor() as cursor:
#loop over database and store the sort field, and the handle
return sorted((map(conv_unicode_tosrtkey_ongtk,
self.sort_func(data)), key) for key, data in cursor)
return sorted((conv_unicode_tosrtkey_ongtk(self.sort_func(data)),
key) for key, data in cursor)
def sort_name(self, data):
n = Name()