sort children during export to ensure a more stable format

pull/13/head
Sylvain Pasche 2023-12-31 16:52:19 +07:00
parent f704cacdee
commit cb523faaad
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

@ -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');