From 39cc1bc0ce45933d48d34f30e23acf6f7510d43d Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 14 Feb 2020 07:56:53 +0100 Subject: [PATCH] NotesFolder: sort the sub-folders This really isn't a good way of doing this as now the folder inserted/removed notifications will not be correct. But at least the folders will be sorted. --- lib/core/notes_folder.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/notes_folder.dart b/lib/core/notes_folder.dart index fce6556c..8fde5897 100644 --- a/lib/core/notes_folder.dart +++ b/lib/core/notes_folder.dart @@ -106,6 +106,8 @@ class NotesFolder } List getFolders() { + // FIXME: This is really not ideal + _folders.sort(); return _folders; }