public static function get_sort_direction() { $result = Request::get(self::PARAM_SORT_DIRECTION, 'name'); $result = strtoupper($result); $result = $result == 'DESC' ? 'DESC' : 'ASC'; return $result; }