Jean Jordaan writes:
> I'd like to sort bunch of objects, and this doesn't seem to
> <dtml-in "PARENTS.objectItems(['ccDocClassMetaType'])" sort=id>
> Should it work? How does one sort the results returned by an
> expression such as the above?
I think so. Does it not?
I probably would use "objectValues" instead of "objectItems".
"objectIdems" gives you a sequence of "id,value" pairs,
"objectValues" gives you just the sequence of values.
If your objects should not have an "id", the sort above would
not work. In this case, you could try:
<dtml-in "PARENTS.objectItems(['ccDocClassMetaType'])" sort=sequence-key>
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -