From 736755d46a9c4c562070e3a77ca51833b7f84180 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 16 May 2013 15:34:26 +0200 Subject: [PATCH] Fix lower case contacts at the end of the contacts list --- src/org/linphone/compatibility/ApiFivePlus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/linphone/compatibility/ApiFivePlus.java b/src/org/linphone/compatibility/ApiFivePlus.java index 1a9e4f769..4cdf2c85b 100644 --- a/src/org/linphone/compatibility/ApiFivePlus.java +++ b/src/org/linphone/compatibility/ApiFivePlus.java @@ -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;