kernel/content/ezcontentoperationcollection.php
static public function changeSortOrder( $nodeID, $sortingField, $sortingOrder = false )
    {
        $curNode = eZContentObjectTreeNode::fetch( $nodeID );
        if ( is_object( $curNode ) )
        {
             $db = eZDB::instance();
             $db->begin();
             $curNode->setAttribute( 'sort_field', $sortingField );
             $curNode->setAttribute( 'sort_order', $sortingOrder );
             $curNode->store();
             $db->commit();
             $object = $curNode->object();
             eZContentCacheManager::clearContentCacheIfNeeded( $object->attribute( 'id' ) );
        }
        return array( 'status' => true );
    }
static public function changeSortOrder( $nodeID, $sortingField, $sortingOrder = false )
    {
        $curNode = eZContentObjectTreeNode::fetch( $nodeID );
        if ( is_object( $curNode ) )
        {
             $db = eZDB::instance();
             $db->begin();
             $curNode->setAttribute( 'sort_field', $sortingField );
             $curNode->setAttribute( 'sort_order', $sortingOrder );
             $curNode->store();
             $db->commit();
             $object = $curNode->object();
             eZContentCacheManager::clearContentCacheIfNeeded( $object->attribute( 'id' ) );
        }
        return array( 'status' => true );
    }
static public function changeSortOrder ( $ nodeID , $ sortingField , $ sortingOrder = false ) { $ curNode = eZContentObjectTreeNode :: fetch ( $ nodeID ) ; if ( is_object ( $ curNode ) ) { $ db = eZDB :: instance ( ) ; $ db -> begin ( ) ; $ curNode -> setAttribute ( 'sort_field' , $ sortingField ) ; $ curNode -> setAttribute ( 'sort_order' , $ sortingOrder ) ; $ curNode -> store ( ) ; $ db -> commit ( ) ; $ object = $ curNode -> object ( ) ; eZContentCacheManager :: clearContentCacheIfNeeded ( $ object -> attribute ( 'id' ) ) ; } return array ( 'status' => true ) ; }
Changes the sort order for a node

@param int $nodeID
@param string $sortingField
@param bool $sortingOrder

@return array An array with operation status, always true
Changes the sort order for a node