public function prepare()
    {
        if ($this->prepared) {
            return;
        }
        usort($this->entries, function(MenuEntry $a, MenuEntry $b) {
            if ($a->getPosition() == $b->getPosition()) {
                return 0;
            }
            return $a->getPosition() > $b->getPosition() ? 1 : -1;
        });
        $this->prepared = true;
    }
public function prepare()
    {
        if ($this->prepared) {
            return;
        }
        usort($this->entries, function(MenuEntry $a, MenuEntry $b) {
            if ($a->getPosition() == $b->getPosition()) {
                return 0;
            }
            return $a->getPosition() > $b->getPosition() ? 1 : -1;
        });
        $this->prepared = true;
    }
public function prepare ( ) { if ( $ this -> prepared ) { return ; } usort ( $ this -> entries , function ( MenuEntry $ a , MenuEntry $ b ) { if ( $ a -> getPosition ( ) == $ b -> getPosition ( ) ) { return 0 ; } return $ a -> getPosition ( ) > $ b -> getPosition ( ) ? 1 : - 1 ; } ) ; $ this -> prepared = true ; }
Prepares the group for rendering.
Prepares the group for rendering .