#206 Notebooks list defaults to alphabetical order

pull/768/head
Sebastien Just 2018-09-06 12:22:09 +02:00
parent ef1ae63233
commit 57ed718993
1 changed files with 10 additions and 2 deletions

View File

@ -3,7 +3,13 @@ const Folder = require('lib/models/Folder.js');
class FoldersScreenUtils {
static async refreshFolders() {
let initialFolders = await Folder.all({ includeConflictFolder: true });
let initialFolders = await Folder.all({
includeConflictFolder: true,
order: [{
by: "title",
dir: "asc"
}]
});
this.dispatch({
type: 'FOLDER_UPDATE_ALL',
@ -13,4 +19,6 @@ class FoldersScreenUtils {
}
module.exports = { FoldersScreenUtils };
module.exports = {
FoldersScreenUtils
};