Process matched messages first

This commit is contained in:
M66B
2021-03-20 11:11:40 +01:00
parent a600f779ad
commit 2dbe68a223

View File

@@ -333,7 +333,7 @@ public interface DaoMessage {
" AND (:after IS NULL OR received > :after)" +
" AND (:before IS NULL OR received < :before)" +
" GROUP BY message.id" +
" ORDER BY received DESC" +
" ORDER BY matched DESC, received DESC" +
" LIMIT :limit OFFSET :offset")
List<TupleMatch> matchMessages(
Long account, Long folder, String find,