Sort message (conversation) list properly

Change-Id: Id208890abf4c646fe8eba01bbfe22de35c610e3c
This commit is contained in:
Marc Blank 2012-01-13 12:35:43 -08:00
parent bdf32afa64
commit bb760d73f0

View File

@ -2865,7 +2865,8 @@ outer:
private String genQueryMailboxMessages(String[] uiProjection) {
StringBuilder sb = genSelect(sMessageListMap, uiProjection);
// Make constant
sb.append(" FROM " + Message.TABLE_NAME + " WHERE " + Message.MAILBOX_KEY + "=?");
sb.append(" FROM " + Message.TABLE_NAME + " WHERE " + Message.MAILBOX_KEY + "=? ORDER BY " +
MessageColumns.TIMESTAMP + " DESC");
return sb.toString();
}