Sort primary account on top

This commit is contained in:
M66B
2021-03-21 07:52:32 +01:00
parent fcc09d538f
commit b54bc0cfa6
3 changed files with 4 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ public interface DaoIdentity {
" WHERE (:account IS NULL OR account.id = :account)" +
" AND identity.synchronize" +
" AND account.synchronize" +
" ORDER BY account.`order`, account.`primary` DESC, account.name COLLATE NOCASE" +
" ORDER BY account.`primary` DESC, account.`order`, account.name COLLATE NOCASE" +
", identity.`primary` DESC, identity.display COLLATE NOCASE, identity.name COLLATE NOCASE, identity.email COLLATE NOCASE")
List<TupleIdentityEx> getComposableIdentities(Long account);