mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
allow specifiyng sorted attribute (including off for overriding), #2142
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user