nodes: 0, module; 1, function_definition; 2, function_name:get_sort_limit; 3, parameters; 4, block; 5, expression_statement; 6, expression_statement; 7, if_statement; 8, return_statement; 9, comment:""" returns the 'sort_limit' from the request
      """; 10, assignment; 11, parenthesized_expression; 12, block; 13, identifier:limit; 14, identifier:limit; 15, call; 16, comparison_operator:limit < 1; 17, expression_statement; 18, comment:# catalog raises IndexError if limit < 1; 19, attribute; 20, argument_list; 21, identifier:limit; 22, integer:1; 23, assignment; 24, identifier:_; 25, identifier:convert; 26, call; 27, attribute; 28, identifier:limit; 29, None; 30, identifier:get; 31, argument_list; 32, identifier:_; 33, identifier:to_int; 34, string:"sort_limit"
code: def get_sort_limit():
      """ returns the 'sort_limit' from the request
      """
      limit = _.convert(get("sort_limit"), _.to_int)
      if (limit < 1):
          limit = None  # catalog raises IndexError if limit < 1
      return limit