[Zope] dtml-in sort_expr and expression

Dieter Maurer dieter at handshake.de
Fri Apr 2 18:54:42 EST 2004


Jaroslav Lukesh wrote at 2004-4-2 16:28 +0200:
> ...
>this sorting is bad becaouse a and b are strings, not numbers. But 
>following examples
>
><dtml-in database sort_expr="int(a),int(b)">
><dtml-in database sort_expr="_str(a).int(),_str(b).int()">
>
>returns errors for all what I was try.

Use "sequence.sort" and provide your own sort function.

-- 
Dieter



More information about the Zope mailing list