1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

#206 Notebooks list defaults to alphabetical order

This commit is contained in:
Sebastien Just 2018-09-06 12:22:09 +02:00
parent ef1ae63233
commit 57ed718993

View File

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