Saturday 23 January 2010 10:41:19 am
Hi, this question has been asked in the past but is usually solved by a sort_by in the fetch command. Another well known problem is the fact that you cant do an attribute sort when using the reverse_related_objects function other than the publish_date, modified_date etc. In this post: http://share.ez.no/forums/setup-design/fetch-reverse-related-objects-and-sort_by-attribute someone mentions creating a custom template function like: $sorted = {$unsorted|sort('your_attribute',true())} Has anyone created such a function that they could share? Any function that sorts a collection of objects would help. thanks.
|