Den Sunday 09 November 2008 03.29.06 skrev Brian Matherly:
> > When I checked the "Birth Event filtering" in
> > gramp-users list I noticed that the the sort
> > order was strange for sort items with Swedish letters
> > "åäöÅÄÖ". Has this been seen in
> > other "strange" languages? It works OK in Linux.
> If the code is using the standard "sort()" function by itself, then not all
> strings will be sorted properly under Windows. The way to solve the problem
> is to use the "locale.strcoll()" function for locale specific comparisons.
> There are various ways to get "sort()" to use "locale.strcoll()". I'm not
> sure what the best way is, but there is an example in the narrative web
> slist.sort(lambda x, y: locale.strcoll(x, y))
> I think it might just work to do:
> But you will have to test it to be sure.
I will try to do some test in my Window box.