Skip to content

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

fix sorting is incorrect when switching from sortBy:title

ammarahm-ed6303293dc793
diff --git a/apps/mobile/src/components/Sort/index.js b/apps/mobile/src/components/Sort/index.js
index 5f32520df..52199e57c 100644
--- a/apps/mobile/src/components/Sort/index.js
+++ b/apps/mobile/src/components/Sort/index.js
@@ -183,6 +183,7 @@ const Sort = ({type, screen}) => {
} else {
if (groupOptions.sortBy === 'title') {
_groupOptions.sortBy = 'dateEdited';
+ _groupOptions.sortDirection = 'desc';
}
}
updateGroupOptions(_groupOptions);