Merge "Making sort order for strequent and starred consistent."
diff --git a/src/com/android/contacts/common/ContactTileLoaderFactory.java b/src/com/android/contacts/common/ContactTileLoaderFactory.java
index 068aed8..19eac76 100644
--- a/src/com/android/contacts/common/ContactTileLoaderFactory.java
+++ b/src/com/android/contacts/common/ContactTileLoaderFactory.java
@@ -68,8 +68,11 @@
Phone.LABEL // ............................................7
};
+ private static final String STARRED_ORDER = Contacts.DISPLAY_NAME+" COLLATE NOCASE ASC";
+
public static CursorLoader createStrequentLoader(Context context) {
- return new CursorLoader(context, Contacts.CONTENT_STREQUENT_URI, COLUMNS, null, null, null);
+ return new CursorLoader(context, Contacts.CONTENT_STREQUENT_URI, COLUMNS, null, null,
+ STARRED_ORDER);
}
public static CursorLoader createStrequentPhoneOnlyLoader(Context context) {
@@ -80,8 +83,8 @@
}
public static CursorLoader createStarredLoader(Context context) {
- return new CursorLoader(context, Contacts.CONTENT_URI, COLUMNS,
- Contacts.STARRED + "=?", new String[]{"1"}, Contacts.DISPLAY_NAME + " ASC");
+ return new CursorLoader(context, Contacts.CONTENT_URI, COLUMNS, Contacts.STARRED + "=?",
+ new String[]{"1"}, STARRED_ORDER);
}
public static CursorLoader createFrequentLoader(Context context) {