protected function parseSorts()
    {
        if ($this->query->has('sort')) {
            $sorts = explode(',', $this->query->getRaw('sort'));

            foreach($sorts as $sort) {
                $this->query->addSort($this->parseSort($sort));
            }
        }
    }
protected function parseSorts()
    {
        if ($this->query->has('sort')) {
            $sorts = explode(',', $this->query->getRaw('sort'));

            foreach($sorts as $sort) {
                $this->query->addSort($this->parseSort($sort));
            }
        }
    }
protected function parseSorts ( ) { if ( $ this -> query -> has ( 'sort' ) ) { $ sorts = explode ( ',' , $ this -> query -> getRaw ( 'sort' ) ) ; foreach ( $ sorts as $ sort ) { $ this -> query -> addSort ( $ this -> parseSort ( $ sort ) ) ; } } }
Parse the sorts from the query string

@throws NoSuchSortException
Parse the sorts from the query string