Sort contacts case-insentively

This fixes the case sensitive ordering of contacts in the view
for creating new conversations.

Fix #1502
This commit is contained in:
Pascal Hartig 2014-05-18 00:11:29 +01:00 committed by Moxie Marlinspike
parent 8713a85beb
commit 92fd8ededd

View File

@ -57,7 +57,7 @@ public class ContactsDatabase {
public static final String TYPE_COLUMN = "type"; public static final String TYPE_COLUMN = "type";
private static final String FILTER_SELECTION = NAME_COLUMN + " LIKE ? OR " + NUMBER_COLUMN + " LIKE ?"; 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, private static final String[] ANDROID_PROJECTION = new String[]{ID_COLUMN,
NAME_COLUMN, NAME_COLUMN,
NUMBER_TYPE_COLUMN, NUMBER_TYPE_COLUMN,