Jackalope\Node::orderBefore PHP Method

orderBefore() public method

{@inheritDoc} Jackalope has no implementation-specific ordering restriction so no \PHPCR\ConstraintViolationException is expected. VersionException and LockException are not tested immediately but thrown on save.
public orderBefore ( $srcChildRelPath, $destChildRelPath )
    public function orderBefore($srcChildRelPath, $destChildRelPath)
    {
        if ($srcChildRelPath === $destChildRelPath) {
            //nothing to move
            return;
        }
        if (null === $this->originalNodesOrder) {
            $this->originalNodesOrder = $this->nodes;
        }
        $this->nodes = NodeHelper::orderBeforeArray($srcChildRelPath, $destChildRelPath, $this->nodes);
        $this->setModified();
    }