[Zope] Sorting in ZPT ... duh... apologies

Heimo Laukkanen huima@fountainpark.org
Sun, 21 Apr 2002 04:19:11 +0300


Yep. The last message was full of crap. It didn't even work like it 
was supposed to do. The better way to do sorting ofcourse was to use 
sequence.sort.

I have to sleep more and stop doing stupid mistakes.

-huima

   <div tal:define="raw_items python: here.contentValues(
                                             filter={'Type':( 'Document'
                                                            , 'Image'
                                                            , 'File'
                                                            , 'News Item'
                                                            ) } );
                     items python: auth_filter( raw_items, skip='' );
                   sort_on python:(('title', 'nocase', 'asc'),
                    ('bobobase_modification_time', 'cmp', 'desc'));
                     sorted_items python:sequence.sort(items, sort_on)">