Forums / Setup & design / Sort By custom attribute

Sort By custom attribute

Author Message

Martynas Bilevičius

Saturday 17 November 2007 4:32:52 am

Hello, i try sort by my created my attribute 'publish_date' where is i set date, and my function for generate sorted output:

{let name=Child children=fetch('content','list',hash('
            parent_node_id',$node.node_id,											    'sort_by', array( array('attribute', false(), 'publish_date' ), array('published', false()) ),
	    'limit',$page_limit,
	    'offset',$view_parameters.offset,												    'depth_operator',eq	)
	 )	
 }

But sort by attribute dont work.