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():
This commit is contained in:
Marvin 2026-03-17 16:43:39 -03:00
parent 3af91ed8c0
commit 35bddd27c4
1 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
<string name="app_name">Notes</string> <string name="app_name">Notes</string>
<string-array name="sort_options"> <string-array name="sort_options">
<item>Most Recent</item> <item>MOST_RECENT</item>
<item>Oldest First</item> <item>OLDEST_FIRST</item>
<item>A to Z</item> <item>A_TO_Z</item>
<item>Z to A</item> <item>Z_TO_A</item>
</string-array> </string-array>
</resources> </resources>