From: Peter L. <pet...@te...> - 2008-11-16 10:00:52
|
Brian, > > I have tried to understand how the sorting works in the > > different views, but no luck. > > I think this is performed by GTK+ somehow as the methods in > > Sort.py is not used > > for sorting places in the place view. In the attached file > > are 4 screen dumps, two from > > Windows and two from Linux with the same database. It works > > perfect in Linux, but gives > > strange result in Windows. If this is a GTK+ problem, I > > guess not much I can do? > > The "PersonView" uses a "PeopleModel" from > src/DisplayModels/_PeopleModel.py. > > In there, I see a function: > > def locale_sort(mylist): > """ > Normal sort routine > """ > l = [ (locale.strxfrm(x),x) for x in mylist ] > l.sort() > return [ x[1] for x in l ] > > Perhaps you could see if that has any affect. > > ~Brian This had great effect! Now the names are in perfect alphabetic order in Person View. I have tested on both Windows XP and Linux and no problems. However, this solves only the sorting of people in Person View, but not the sorting of the different columns in the other views. How this is done I don't understand. /Peter |