mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-03-07 16:07:29 -05:00
ignore the case at ordering notes
This commit is contained in:
@@ -98,7 +98,7 @@ public class DBHelper extends SQLiteOpenHelper {
|
||||
public List<Note> getNotes() {
|
||||
final List<Note> notes = new ArrayList<>();
|
||||
final String cols[] = {COL_ID, COL_TITLE, COL_VALUE};
|
||||
final Cursor cursor = mDb.query(TABLE_NAME, cols, null, null, null, null, COL_TITLE);
|
||||
final Cursor cursor = mDb.query(TABLE_NAME, cols, null, null, null, null, COL_TITLE + " COLLATE NOCASE ASC");
|
||||
if (cursor != null) {
|
||||
if (cursor.moveToFirst()) {
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user