From 92fd8ededd04823627bbf98607d43d5f80a33d2c Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Sun, 18 May 2014 00:11:29 +0100 Subject: [PATCH] Sort contacts case-insentively This fixes the case sensitive ordering of contacts in the view for creating new conversations. Fix #1502 --- src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java b/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java index 93208d36b8..007c1471a1 100644 --- a/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java +++ b/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java @@ -57,7 +57,7 @@ public class ContactsDatabase { public static final String TYPE_COLUMN = "type"; private static final String FILTER_SELECTION = NAME_COLUMN + " LIKE ? OR " + NUMBER_COLUMN + " LIKE ?"; - private static final String CONTACT_LIST_SORT = NAME_COLUMN + " ASC"; + private static final String CONTACT_LIST_SORT = NAME_COLUMN + " COLLATE NOCASE ASC"; private static final String[] ANDROID_PROJECTION = new String[]{ID_COLUMN, NAME_COLUMN, NUMBER_TYPE_COLUMN,