nodes: 0, module; 1, function_definition; 2, function_name:remove_sort; 3, parameters; 4, block; 5, identifier:self; 6, identifier:field_name; 7, expression_statement; 8, expression_statement; 9, comment:"""
          Clears sorting criteria affecting ``field_name``.
          """; 10, assignment; 11, attribute; 12, list_comprehension; 13, identifier:self; 14, identifier:sorts; 15, call; 16, for_in_clause; 17, if_clause; 18, identifier:dict; 19, argument_list; 20, pattern_list; 21, attribute; 22, comparison_operator:field
                        is not field_name; 23, keyword_argument; 24, identifier:field; 25, identifier:value; 26, identifier:self; 27, identifier:sorts; 28, identifier:field; 29, identifier:field_name; 30, identifier:field; 31, identifier:value
code: def remove_sort(self, field_name):
          """
          Clears sorting criteria affecting ``field_name``.
          """
          self.sorts = [dict(field=value) for field, value in self.sorts if field
                        is not field_name]