diff --git a/bigquery_etl/schema/__init__.py b/bigquery_etl/schema/__init__.py index b1bcea6b6b..44ed0e1bae 100644 --- a/bigquery_etl/schema/__init__.py +++ b/bigquery_etl/schema/__init__.py @@ -270,7 +270,7 @@ class Schema: def to_yaml_file(self, yaml_path: Path): """Write schema to the YAML file path.""" with open(yaml_path, "w") as out: - yaml.dump(self.schema, out, default_flow_style=False) + yaml.dump(self.schema, out, default_flow_style=False, sort_keys=False) def to_json_file(self, json_path: Path): """Write schema to the JSON file path."""