Sorting in ZPT ... duh... apologies
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)">
participants (1)
-
Heimo Laukkanen