[Zope] Sort Question
Oleg Broytmann
Oleg Broytmann <phd@phd.pp.ru>
Fri, 28 Sep 2001 12:34:20 +0400
On Fri, Sep 28, 2001 at 11:42:27AM +0800, »Æ¶¬ wrote:
> my Sort is :
> sort="getId/desc"
> but error show:
> Error Type: KeyError
> Error Value: desc
> how set sort to desc?
If you use asc/desc you must pass a comparison function. If you have no
special comparison function - use cmp:
sort="getId/cmp/desc"
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.