allow specifiyng sorted attribute (including off for overriding), #2142

This commit is contained in:
zadam
2021-09-03 22:33:40 +02:00
parent 6e300c7cf5
commit 5cfd1c030d
7 changed files with 58 additions and 73 deletions

View File

@@ -469,9 +469,9 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
noteService.scanForLinks(becca.getNote(noteId));
if (!metaFile) {
// if there's no meta file then the notes are created based on the order in that tar file but that
// if there's no meta file then the notes are created based on the order in that zip file but that
// is usually quite random so we sort the notes in the way they would appear in the file manager
treeService.sortNotesByTitle(noteId, true);
treeService.sortNotes(noteId, 'title', false, true);
}
taskContext.increaseProgressCount();