mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 06:52:03 +02:00
ignore the case at ordering notes
This commit is contained in:
parent
962c5cb74d
commit
d672ea3878
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user