mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Small improvements
This commit is contained in:
@@ -36,7 +36,10 @@ public interface DaoContact {
|
||||
|
||||
@Query("SELECT * FROM contact" +
|
||||
" ORDER BY" +
|
||||
" CASE WHEN favorite = 1 THEN 0 ELSE 1 END" +
|
||||
" CASE" +
|
||||
" WHEN favorite = 1 THEN 0" +
|
||||
" WHEN favorite = 2 THEN 2" +
|
||||
" ELSE 1 END" +
|
||||
", times_contacted DESC" +
|
||||
", last_contacted DESC")
|
||||
LiveData<List<EntityContact>> liveContacts();
|
||||
|
||||
Reference in New Issue
Block a user