From 35bddd27c4a96eb71dcc0388030cbe951ce3e23b Mon Sep 17 00:00:00 2001 From: Marvin Date: Tue, 17 Mar 2026 16:43:39 -0300 Subject: [PATCH] Fix: Sort menu now works correctly The sort spinner used display strings like 'Most Recent' but the code expected internal codes like 'MOST_RECENT'. This mismatch caused sorting to always fail. Changed sort_options array to use exact values expected by NotesStorage.sortNotes(): --- app/src/main/res/values/strings.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 12ac133..45cd390 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -3,9 +3,9 @@ Notes - Most Recent - Oldest First - A to Z - Z to A + MOST_RECENT + OLDEST_FIRST + A_TO_Z + Z_TO_A