mirror of https://github.com/laurent22/joplin.git
#206 Notebooks list defaults to alphabetical order
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