Fix sorting of threaded messages.

This commit is contained in:
Danny Baumann 2013-02-01 09:50:52 +01:00
parent 1ab04587a9
commit 6d1f96966a

View file

@ -418,8 +418,7 @@ public class EmailProvider extends ContentProvider {
if (!StringUtils.isNullOrEmpty(sortOrder)) { if (!StringUtils.isNullOrEmpty(sortOrder)) {
query.append(" ORDER BY "); query.append(" ORDER BY ");
query.append(SqlQueryBuilder.addPrefixToSelection(MESSAGES_COLUMNS, query.append(sortOrder);
"u.", sortOrder));
} }
// We need the selection arguments twice. Once for each sub query. // We need the selection arguments twice. Once for each sub query.