Author Topic

Łukasz Serwatka

Wednesday 26 April 2006 11:15:25 pm

Comment21831

The first element of the array must be the desired sorting method. The second element of the array must be the sorting direction, it can be either true() or false() - ascending or descending.

Try with:

{def $items=fetch( 'content', 'tree', hash( 'parent_node_id', $expandable_rootnode_id, 'sort_by', array( array( 'priority', false() ) ) ) )}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog