Phil Harris writes:
I've seen this and I would say we have a bug.
It seems that when you use a method to sort on, what happens is that the method is not called, it is simply sorting on the reference of the method. Which is almost the same as not sorting at all ;).
The reference I'm talking about is the <function a at 00895D74>, string when doing a __repr__ of a method/function.
I hope I'm wrong here but I can't find any explanation for the behaviour. You are almost surely right:
Look at "DocumentTemplate/sequence/SortEx.py" near line 102. You should see: if not basic_type(akey): Change this to if not basic_type(type(akey)): If this fixed the problem, please file a "Bug+Solution" report to the Zope collector. Dieter