added new label "sorted" which will keep children notes alphabetically sorted, fixes #82

This commit is contained in:
azivner
2018-08-01 09:26:02 +02:00
parent 9452fc236b
commit 2d24bf81dd
12 changed files with 100 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ const utils = require('./utils');
const dateUtils = require('./date_utils');
const labelService = require('./labels');
const dateNoteService = require('./date_notes');
const treeService = require('./tree');
const config = require('./config');
const repository = require('./repository');
const axios = require('axios');
@@ -61,6 +62,8 @@ function ScriptApi(startNote, currentNote, targetNote) {
this.getRootCalendarNote = dateNoteService.getRootCalendarNote;
this.getDateNote = dateNoteService.getDateNote;
this.sortNotesAlphabetically = treeService.sortNotesAlphabetically;
this.transactional = sql.transactional;
}