Forums / Developer / How can I make custom fetch sorting method?
Daniele Nocentini
Wednesday 17 February 2010 6:28:16 am
I have a fetch tree function for extract data from ez content objects like this:
{def $nodes=fetch( 'content', 'tree', hash( 'parent_node_id', 157, 'class_filter_type', 'include', 'class_filter_array', array('position'), 'attribute_filter', array(array( 643, 'like', $node.data_map.name.content )), 'sort_by', array('path_string', false()) ))}
it's works perfect for me but I wuold like to make custom sorting method by a date attribute from parent class object for the single objects found in a tree.
How can I make this?
Antica Bottega Digitale srl http://www.abd.it