We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The use of a HashMap here https://github.com/dart-lang/yaml/blob/master/lib/src/equality.dart#L13 ensures that when the elements of a map are added here https://github.com/dart-lang/yaml/blob/master/lib/src/loader.dart#L156 the order is nondeterministic.
This shows itself in tools that read then write yaml - the output is needlessly reorganized.
The default behaviour should keep the input order (change HashMap to LinkedHashMap)
Sorting would be a nice option, but keeping the original order would
The text was updated successfully, but these errors were encountered:
Hello yaml maintainers,
Would you consider accepting a pull for this?
Sorry, something went wrong.
Ping @rakudrama
+1 Same problem here
Successfully merging a pull request may close this issue.
The use of a HashMap here https://github.com/dart-lang/yaml/blob/master/lib/src/equality.dart#L13
ensures that when the elements of a map are added here https://github.com/dart-lang/yaml/blob/master/lib/src/loader.dart#L156
the order is nondeterministic.
This shows itself in tools that read then write yaml - the output is needlessly reorganized.
The default behaviour should keep the input order (change HashMap to LinkedHashMap)
Sorting would be a nice option, but keeping the original order would
The text was updated successfully, but these errors were encountered: