Order uids

This commit is contained in:
M66B 2021-10-16 21:45:54 +02:00
parent ee9f9d9ce8
commit f00427136b
1 changed files with 2 additions and 1 deletions

View File

@ -576,7 +576,8 @@ public interface DaoMessage {
@Query("SELECT uid FROM message" +
" WHERE folder = :folder" +
" AND (:received IS NULL OR received >= :received)" +
" AND NOT uid IS NULL")
" AND NOT uid IS NULL" +
" ORDER BY uid")
List<Long> getUids(long folder, Long received);
@Query("SELECT * FROM message" +