public function getSubnodes()
    {
        $sort = \Doctrine\Common\Collections\Criteria::create();
        $sort->orderBy([
            'priority' => \Doctrine\Common\Collections\Criteria::DESC,
        ]);

        return $this
            ->subnodes
            ->matching($sort);
    }
public function getSubnodes()
    {
        $sort = \Doctrine\Common\Collections\Criteria::create();
        $sort->orderBy([
            'priority' => \Doctrine\Common\Collections\Criteria::DESC,
        ]);

        return $this
            ->subnodes
            ->matching($sort);
    }
public function getSubnodes ( ) { $ sort = \ Doctrine \ Common \ Collections \ Criteria :: create ( ) ; $ sort -> orderBy ( [ 'priority' => \ Doctrine \ Common \ Collections \ Criteria :: DESC , ] ) ; return $ this -> subnodes -> matching ( $ sort ) ; }
Get Subnodes sorted by priority.

@return \Doctrine\Common\Collections\ArrayCollection Subnodes
Get Subnodes sorted by priority .