mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 12:24:26 +01:00
Sort searched contacts by name and email
This commit is contained in:
@@ -68,7 +68,10 @@ public interface DaoContact {
|
||||
" WHERE (:account IS NULL OR account = :account)" +
|
||||
" AND (:type IS NULL OR type = :type)" +
|
||||
" AND (email LIKE :query COLLATE NOCASE OR name LIKE :query COLLATE NOCASE)" +
|
||||
" AND state <> " + EntityContact.STATE_IGNORE)
|
||||
" AND state <> " + EntityContact.STATE_IGNORE +
|
||||
" ORDER BY" +
|
||||
" CASE WHEN name IS NULL THEN 1 ELSE 0 END" +
|
||||
", name COLLATE NOCASE, email COLLATE NOCASE")
|
||||
Cursor searchContacts(Long account, Integer type, String query);
|
||||
|
||||
@Insert
|
||||
|
||||
Reference in New Issue
Block a user