Skip to content

Preserve key order when dumping YAMLs#83

Merged
ceblanton merged 1 commit intoNOAA-GFDL:mainfrom
J-Lentz:preserve_order
Feb 2, 2026
Merged

Preserve key order when dumping YAMLs#83
ceblanton merged 1 commit intoNOAA-GFDL:mainfrom
J-Lentz:preserve_order

Conversation

@J-Lentz
Copy link
Copy Markdown
Contributor

@J-Lentz J-Lentz commented Jan 29, 2026

Add the sort_keys=False argument to yaml.dump() calls in the following tools:

  • combine-data-table-yamls
  • combine-field-table-yamls
  • field-table-to-yaml

This should resolve unexpected order changes when combining or converting YAMLs.

Add the `sort_keys=False` argument to a handful of `yaml.dump()` calls.
@uramirez8707
Copy link
Copy Markdown
Contributor

Thanks @J-Lentz Looks good to me.

@ceblanton ceblanton merged commit 8d50984 into NOAA-GFDL:main Feb 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants