Skip to content

Commit d672ea3

Browse files
committed
ignore the case at ordering notes
1 parent 962c5cb commit d672ea3

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/com/simplemobiletools/notes/databases

1 file changed

+1
-1
lines changed

app/src/main/java/com/simplemobiletools/notes/databases/DBHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public boolean doesTitleExist(String title) {
9898
public List<Note> getNotes() {
9999
final List<Note> notes = new ArrayList<>();
100100
final String cols[] = {COL_ID, COL_TITLE, COL_VALUE};
101-
final Cursor cursor = mDb.query(TABLE_NAME, cols, null, null, null, null, COL_TITLE);
101+
final Cursor cursor = mDb.query(TABLE_NAME, cols, null, null, null, null, COL_TITLE + " COLLATE NOCASE ASC");
102102
if (cursor != null) {
103103
if (cursor.moveToFirst()) {
104104
do {

0 commit comments

Comments
 (0)