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

Merge pull request #768 from sebastienjust/master

Notebooks list is sorted alphabetically as default
This commit is contained in:
Laurent Cozic 2018-09-13 19:56:57 +01:00 committed by GitHub
commit cda8b95bfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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',