Share » Forums » Developer » fetchObjectTree not sorting correctly

fetchObjectTree not sorting correctly

fetchObjectTree not sorting correctly

Monday 25 June 2007 8:16:04 am - 1 reply

Author Message

André R.

Monday 25 June 2007 8:24:41 am

try:

$sortBy = array('priority', true);

EDIT:
Should probably also give a better example of code, I'm not sure where you got that one from.

 
    $nodeObjects =& eZContentObjectTreeNode::subTree(
        array( 'Depth' => 3,
               'Limit'            => 50,
               'Offset'           => 0,
               'SortBy'           => array('priority', true),
               'DepthOperator'    => 'lt',
               'ClassFilterType'  => 'include',
               'ClassFilterArray' => array('folder'),
               'AsObject'         => true
               ), 144 );

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu