Commit d392c149 authored by Amos Latteier's avatar Amos Latteier

Added examples to the _.sequence.sort docs.

parent 668f64f3
......@@ -29,7 +29,24 @@ sequence: DTML Sequence Functions
Examples
XXX
Sort child object (using the 'objectValues' method) by id (using
the 'getId' method), ignoring case::
<dtml-in expr="_.sequence.sort(objectValues(),
(('getId', 'nocase'),))">
<dtml-var getId> <br>
</dtml-in>
Sort child objects by title (ignoring case) and date (from newest
to oldest)::
<dtml-in expr="_.sequence.sort(objectValues(),
(('title', 'nocase'),
('bobobase_modification_time',
'cmp', desc')
))">
<dtml-var title> <dtml-var bobobase_modification_time> <br>
</dtml-in>
See Also
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment