Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix filtered tags and notebooks not sorted correctly

Ammar Ahmed48d9a863ec1b
diff --git a/apps/mobile/app/components/side-menu/side-menu-notebooks.tsx b/apps/mobile/app/components/side-menu/side-menu-notebooks.tsx
index 4a3f6c59a..ddfa5ce5f 100644
--- a/apps/mobile/app/components/side-menu/side-menu-notebooks.tsx
+++ b/apps/mobile/app/components/side-menu/side-menu-notebooks.tsx
@@ -66,7 +66,7 @@ export const SideMenuNotebooks = () => {
if (lastQuery.current) {
db.lookup
.notebooks(lastQuery.current)
- .sorted()
+ .sorted(db.settings.getGroupOptions("notebooks"))
.then((filtered) => {
setFilteredNotebooks(filtered);
});
diff --git a/apps/mobile/app/components/side-menu/side-menu-tags.tsx b/apps/mobile/app/components/side-menu/side-menu-tags.tsx
index 8b48ee139..938ff7b4f 100644
--- a/apps/mobile/app/components/side-menu/side-menu-tags.tsx
+++ b/apps/mobile/app/components/side-menu/side-menu-tags.tsx
@@ -220,7 +220,7 @@ export const SideMenuTags = () => {
if (lastQuery.current) {
db.lookup
.tags(lastQuery.current.trim())
- .sorted()
+ .sorted(db.settings.getGroupOptions("tags"))
.then(async (filtered) => {
setFilteredTags(filtered);
});