Browse Source

Sort keys of properties JSON file

Unrud 8 years ago
parent
commit
33ad60503f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      radicale/storage.py

+ 1 - 1
radicale/storage.py

@@ -1328,7 +1328,7 @@ class Collection(BaseCollection):
 
 
     def set_meta_all(self, props):
     def set_meta_all(self, props):
         with self._atomic_write(self._props_path, "w") as f:
         with self._atomic_write(self._props_path, "w") as f:
-            json.dump(props, f)
+            json.dump(props, f, sort_keys=True)
 
 
     @property
     @property
     def last_modified(self):
     def last_modified(self):