Final fix of issue 2504 for other viwes than people.

svn: r11322
This commit is contained in:
Peter Landgren 2008-11-20 13:19:10 +00:00
parent 3d8fccb1b7
commit 3f737619e6

View File

@ -211,13 +211,13 @@ class BaseModel(gtk.GenericTreeModel):
self.total = 0
while data:
key = locale.strxfrm(self.sort_func(data[1]))
self.sort_data.append((key,data[0]))
self.sort_data.append((self.sort_func(data[1]),data[0]))
self.total += 1
data = cursor.next()
cursor.close()
self.sort_data.sort(reverse=self.reverse)
self.sort_data.sort(lambda x, y: locale.strcoll(x[0], y[0]),
reverse=self.reverse)
return [ x[1] for x in self.sort_data ]