From 6d1f96966ae7c21684b28101cc10dea0d5e84ca9 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Fri, 1 Feb 2013 09:50:52 +0100 Subject: [PATCH] Fix sorting of threaded messages. --- src/com/fsck/k9/provider/EmailProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/com/fsck/k9/provider/EmailProvider.java b/src/com/fsck/k9/provider/EmailProvider.java index 708b2a598..f420896db 100644 --- a/src/com/fsck/k9/provider/EmailProvider.java +++ b/src/com/fsck/k9/provider/EmailProvider.java @@ -418,8 +418,7 @@ public class EmailProvider extends ContentProvider { if (!StringUtils.isNullOrEmpty(sortOrder)) { query.append(" ORDER BY "); - query.append(SqlQueryBuilder.addPrefixToSelection(MESSAGES_COLUMNS, - "u.", sortOrder)); + query.append(sortOrder); } // We need the selection arguments twice. Once for each sub query.