Fix contacts order

This commit is contained in:
Margaux Clerc 2015-02-20 16:05:37 +01:00
parent 3d0fcf0879
commit f62d0aac70

View file

@ -164,7 +164,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 + " COLLATE UNICODE ASC");
Cursor cursor = cr.query(Data.CONTENT_URI, projection, query, null, " lower(" + Data.DISPLAY_NAME + ") COLLATE UNICODE ASC");
if (!shouldGroupBy || cursor == null) {
return cursor;