[Zope] dtml-in sort_expr and expression
Jaroslav Lukesh
lukesh at seznam.cz
Fri Apr 2 09:28:09 EST 2004
Dear all,
I have problem with sorting by values. I have numbers in database in
textual form.
I need something like
<dtml-in database sort=a,b>
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.
Many thanks for help,
--
Jaroslav Lukeš
--
Tento e-mail nemůže obsahovat VIRY
jelikož nepocházi z virózního systému M$ Windows!
More information about the Zope
mailing list