Prevent out of order search results

This commit is contained in:
M66B
2022-10-11 19:01:43 +02:00
parent dad8d41611
commit 2be041841a

View File

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