mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
sort children during export to ensure a more stable format
This commit is contained in:
parent
f704cacdee
commit
cb523faaad
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user