We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71ebd60 commit 7ead33bCopy full SHA for 7ead33b
1 file changed
src/pals/functions.py
@@ -63,14 +63,14 @@ def store_dict_to_file(filename: str, pals_dict: dict):
63
if extension == ".json":
64
import json
65
66
- json_data = json.dumps(pals_dict, sort_keys=True, indent=2)
+ json_data = json.dumps(pals_dict, sort_keys=False, indent=2)
67
with open(filename, "w") as file:
68
file.write(json_data)
69
70
elif extension == ".yaml":
71
import yaml
72
73
- yaml_data = yaml.dump(pals_dict, default_flow_style=False)
+ yaml_data = yaml.dump(pals_dict, default_flow_style=False, sort_keys=False)
74
75
file.write(yaml_data)
76
0 commit comments