Sorted keys

This commit is contained in:
Joe 2025-12-09 00:28:13 -06:00
parent d08780fc14
commit 929bc254fa
16 changed files with 145 additions and 36 deletions

View file

@ -106,7 +106,7 @@ pub fn syncback_dir<'sync>(
if !meta.is_empty() {
dir_syncback.fs_snapshot.add_file(
snapshot.path.join("init.meta.json"),
serde_json::to_vec_pretty(&meta)
crate::json::to_vec_pretty_sorted(&meta)
.context("could not serialize new init.meta.json")?,
);
}