/** * @param QueryWrapperInterface $query * @return QueryWrapperInterface */ public function applyToQuery(QueryWrapperInterface $query) { return $query->orderBy($this->getFieldName(), $this->getCondition()); }