[Zope] Help! Sorting on a numeric id?

Mats Nordgren mats@ronin-group.org
Wed, 12 Dec 2001 18:58:26 -0800 (PST)


Hi everyone,

How do i sort on numeric id?

I have a Folder containing Zclasses with numeric ids.
what i am trying to do is to sort it, but it treats
the ids as strings as it should, how do i sort it so
it treats the ids as numeric values?

<dtml-in "objectValues(['ZClass'])" sort=id>
<dtml-var id>
</dtml-in>

Produces:
1
10
2
....
9

Any help would be greatly appreciated.

Mats


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com