code: def get_sort_limit():
      
      limit = _.convert(get("sort_limit"), _.to_int)
      if (limit < 1):
          limit = None  # catalog raises IndexError if limit < 1
      return limit
docs: returns the 'sort_limit' from the request