[Zope] Python script sort by id
Dieter Maurer
dieter@handshake.de
Fri, 27 Jul 2001 21:21:09 +0200 (CEST)
Tim Hicks writes:
> I have a slightly strange problem with sorting in a python script.
> Basically, sorting by title and meta_type both work as expected, but by id produces totally random results that I cannot fathom (I really can't see any pattern at all).
You know, that "id" is often a method and not an attribute.
If it is, your comparisons will produce funny results.
Use "getID()" instead.
Dieter