nodes: 0, module; 1, function_definition; 2, function_name:sorted; 3, parameters; 4, block; 5, identifier:self; 6, identifier:fsort; 7, expression_statement; 8, if_statement; 9, expression_statement; 10, return_statement; 11, string; 12, not_operator; 13, block; 14, assignment; 15, identifier:self; 16, string_content:Allows to add one or more sort on specific fields. Each sort can be reversed as well. The sort is defined on a per field level, with special field name for _score to sort by score.; 17, attribute; 18, expression_statement; 19, subscript; 20, identifier:fsort; 21, identifier:self; 22, identifier:params; 23, assignment; 24, attribute; 25, string; 26, attribute; 27, call; 28, identifier:self; 29, identifier:params; 30, string_content:sort; 31, identifier:self; 32, identifier:params; 33, identifier:dict; 34, argument_list
code: def sorted(self, fsort):
          '''
          Allows to add one or more sort on specific fields. Each sort can be reversed as well. The sort is defined on a per field level, with special field name for _score to sort by score.
          '''
          if not self.params:
              self.params = dict()
          self.params['sort'] = fsort
  
          return self