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:
parent
ef1ae63233
commit
57ed718993
@ -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
|
||||
};
|
Loading…
Reference in New Issue
Block a user