Mobile: For now, make notebooks sorted by title

pull/1331/head
Laurent Cozic 2019-03-10 20:30:31 +00:00
parent f962084591
commit 0d8878abd3
1 changed files with 5 additions and 0 deletions

View File

@ -429,6 +429,11 @@ async function initialize(dispatch) {
reg.logger().info('db.ftsEnabled = ', Setting.value('db.ftsEnabled'));
}
// Note: for now we hard-code the folder sort order as we need to
// create a UI to allow customisation (started in branch mobile_add_sidebar_buttons)
Setting.setValue('folders.sortOrder.field', 'title');
Setting.setValue('folders.sortOrder.reverse', false);
reg.logger().info('Sync target: ' + Setting.value('sync.target'));
setLocale(Setting.value('locale'));