code: def _clean_schema_fields(self, fields):
          
          fields_sorted = sorted(fields, key=lambda field: field["name"])
          # Ignore mode and description when comparing schemas.
          return [
              {"name": field["name"], "type": field["type"]}
              for field in fields_sorted
          ]
docs: Return a sanitized version of the schema for comparisons.