src/wcmf/lib/model/Node.php
public function setNodeOrder(array $orderedList, array $movedList=null, $role=null) {
    $this->orderedNodes = [
        'ordered' => $orderedList,
        'moved' => $movedList,
        'role' => $role
    ];
    $this->setState(PersistentOBject::STATE_DIRTY);
  }
public function setNodeOrder(array $orderedList, array $movedList=null, $role=null) {
    $this->orderedNodes = [
        'ordered' => $orderedList,
        'moved' => $movedList,
        'role' => $role
    ];
    $this->setState(PersistentOBject::STATE_DIRTY);
  }
public function setNodeOrder ( array $ orderedList , array $ movedList = null , $ role = null ) { $ this -> orderedNodes = [ 'ordered' => $ orderedList , 'moved' => $ movedList , 'role' => $ role ] ; $ this -> setState ( PersistentOBject :: STATE_DIRTY ) ; }
Define the order of related Node instances. The mapper is responsible for
persisting the order of the given Node instances in relation to this Node.
@note Note instances, that are not explicitly sortable by a sortkey
(@see PersistenceMapper::getDefaultOrder()) will be ignored. If a given
Node instance is not related to this Node yet, an exception will be thrown.
Any not persisted definition of a previous call will be overwritten
@param $orderedList Array of ordered Node instances
@param $movedList Array of repositioned Node instances (optional, improves performance)
@param $role Role name of the Node instances (optional)
Define the order of related Node instances . The mapper is responsible for persisting the order of the given Node instances in relation to this Node .