I\'m using yaml.dump to output a dict. It prints out each item in alphabetical order based on the key.
yaml.dump
>>> d = {\"z\":0,\"y\":0,\"x\":
The following setting makes sure the content is not sorted in the output:
yaml.sort_base_mapping_type_on_output = False