sort children during export to ensure a more stable format

This commit is contained in:
Sylvain Pasche 2023-12-31 16:52:19 +01:00
parent f704cacdee
commit cb523faaad
No known key found for this signature in database

View File

@ -181,6 +181,8 @@ async function exportToZip(taskContext, branch, format, res, setHeaders = true)
noteIdToMeta[note.noteId] = meta;
// sort children for having a stable / reproducible export format
note.sortChildren();
const childBranches = note.getChildBranches()
.filter(branch => branch.noteId !== '_hidden');