public function getSort() { $sort = Common::getRequestVar('sort', self::DEFAULT_SORT, 'string'); if (!$this->isValidSortMethod($sort)) { $sort = self::DEFAULT_SORT; } return $sort; }