Fix lower case contacts at the end of the contacts list

This commit is contained in:
Sylvain Berfini 2013-05-16 15:34:26 +02:00
parent 60ff10e403
commit 186a4dc84b

View file

@ -227,7 +227,7 @@ public class ApiFivePlus {
String[] projection = new String[] { Data.CONTACT_ID, Data.DISPLAY_NAME };
String query = Data.DISPLAY_NAME + " IS NOT NULL AND (" + select + ")";
Cursor cursor = cr.query(Data.CONTENT_URI, projection, query, null, Data.DISPLAY_NAME + " ASC");
Cursor cursor = cr.query(Data.CONTENT_URI, projection, query, null, Data.DISPLAY_NAME + " COLLATE NOCASE ASC");
if (!shouldGroupBy || cursor == null) {
return cursor;