While it is possible to deserialize yaml via ConvertFrom-Yaml -Ordered, serializing any of the ordered or sorted dictionary types does not seem to keep the key order of the dictionary in the YAML file.
Supporting this would help to roundtrip documents or modify them in a consistent way so that the original and the result can be compared with diff.
While it is possible to deserialize yaml via
ConvertFrom-Yaml -Ordered, serializing any of the ordered or sorted dictionary types does not seem to keep the key order of the dictionary in the YAML file.Supporting this would help to roundtrip documents or modify them in a consistent way so that the original and the result can be compared with diff.