Skip to content

Commit

Permalink
sort children during export to ensure a more stable format
Browse files Browse the repository at this point in the history
  • Loading branch information
spasche committed Dec 31, 2023
1 parent f704cac commit cb523fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/export/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit cb523fa

Please sign in to comment.