public function addMultipleOrderBy(array $criteria = array('_position' => 'ASC'))
    {
        if (true === empty($criteria)) {
            $criteria = array('_position' => 'ASC');
        }

        foreach ($criteria as $sort => $order) {
            $this->addOrderBy($sort, $order);
        }

        return $this;
    }
public function addMultipleOrderBy(array $criteria = array('_position' => 'ASC'))
    {
        if (true === empty($criteria)) {
            $criteria = array('_position' => 'ASC');
        }

        foreach ($criteria as $sort => $order) {
            $this->addOrderBy($sort, $order);
        }

        return $this;
    }
public function addMultipleOrderBy ( array $ criteria = array ( '_position' => 'ASC' ) ) { if ( true === empty ( $ criteria ) ) { $ criteria = array ( '_position' => 'ASC' ) ; } foreach ( $ criteria as $ sort => $ order ) { $ this -> addOrderBy ( $ sort , $ order ) ; } return $ this ; }
Add several ordering criteria by array.

@param  array                $criteria           Optional, the ordering criteria ( ['_leftnode' => 'asc'] by default )

@return PageQueryBuilder
Add several ordering criteria by array .