mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
sort children during export to ensure a more stable format
This commit is contained in:
@@ -181,6 +181,8 @@ async function exportToZip(taskContext, branch, format, res, setHeaders = true)
|
|||||||
|
|
||||||
noteIdToMeta[note.noteId] = meta;
|
noteIdToMeta[note.noteId] = meta;
|
||||||
|
|
||||||
|
// sort children for having a stable / reproducible export format
|
||||||
|
note.sortChildren();
|
||||||
const childBranches = note.getChildBranches()
|
const childBranches = note.getChildBranches()
|
||||||
.filter(branch => branch.noteId !== '_hidden');
|
.filter(branch => branch.noteId !== '_hidden');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user