diff --git a/oml/pdict.py b/oml/pdict.py index 020d5a4..0ee9377 100644 --- a/oml/pdict.py +++ b/oml/pdict.py @@ -18,7 +18,7 @@ class pdict(dict): def _save(self): if self._path: with open(self._path, 'w') as fd: - json.dump(self, fd, indent=1) + json.dump(self, fd, indent=4, sort_keys=True) def get(self, key, default=None): if default == None and self._defaults: