nodes: 0, module; 1, function_definition; 2, function_name:sort; 3, parameters; 4, block; 5, identifier:self; 6, identifier:search; 7, expression_statement; 8, if_statement; 9, return_statement; 10, comment:"""
          Add sorting information to the request.
          """; 11, attribute; 12, block; 13, identifier:search; 14, identifier:self; 15, identifier:_sort; 16, expression_statement; 17, assignment; 18, identifier:search; 19, call; 20, attribute; 21, argument_list; 22, identifier:search; 23, identifier:sort; 24, list_splat; 25, attribute; 26, identifier:self; 27, identifier:_sort
code: def sort(self, search):
          """
          Add sorting information to the request.
          """
          if self._sort:
              search = search.sort(*self._sort)
          return search