From 0d8878abd3a959a321103da7f4f83a0753f4ee71 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 10 Mar 2019 20:30:31 +0000 Subject: [PATCH] Mobile: For now, make notebooks sorted by title --- ReactNativeClient/root.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ReactNativeClient/root.js b/ReactNativeClient/root.js index efceba921c..d0dfeb62e3 100644 --- a/ReactNativeClient/root.js +++ b/ReactNativeClient/root.js @@ -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'));