Use account order for identity ordering

This commit is contained in:
M66B 2020-04-18 13:22:55 +02:00
parent 69a53318fe
commit c3e5fa227a
1 changed files with 1 additions and 1 deletions

View File

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