public function moveUp(EntityInterface $node, $number = 1)
    {
        if ($number < 1) {
            return false;
        }

        return $this->_table->getConnection()->transactional(function () use ($node, $number) {
            $this->_ensureFields($node);

            return $this->_moveUp($node, $number);
        });
    }
public function moveUp(EntityInterface $node, $number = 1)
    {
        if ($number < 1) {
            return false;
        }

        return $this->_table->getConnection()->transactional(function () use ($node, $number) {
            $this->_ensureFields($node);

            return $this->_moveUp($node, $number);
        });
    }
public function moveUp ( EntityInterface $ node , $ number = 1 ) { if ( $ number < 1 ) { return false ; } return $ this -> _table -> getConnection ( ) -> transactional ( function ( ) use ( $ node , $ number ) { $ this -> _ensureFields ( $ node ) ; return $ this -> _moveUp ( $ node , $ number ) ; } ) ; }
Reorders the node without changing its parent.

If the node is the first child, or is a top level node with no previous node
this method will return false

@param \Cake\Datasource\EntityInterface $node The node to move
@param int|bool $number How many places to move the node, or true to move to first position
@throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found
@return \Cake\Datasource\EntityInterface|bool $node The node after being moved or false on failure
Reorders the node without changing its parent .