Example #1
0
 /**
  * Parse the sorts from the query string
  *
  * @throws NoSuchSortException
  */
 protected function parseSorts()
 {
     if ($this->query->has('sort')) {
         $sorts = explode(',', $this->query->getRaw('sort'));
         foreach ($sorts as $sort) {
             $this->query->addSort($this->parseSort($sort));
         }
     }
 }