diff --git a/app/src/main/java/eu/faircode/email/DaoIdentity.java b/app/src/main/java/eu/faircode/email/DaoIdentity.java index 33c67f3893..64038fde88 100644 --- a/app/src/main/java/eu/faircode/email/DaoIdentity.java +++ b/app/src/main/java/eu/faircode/email/DaoIdentity.java @@ -54,7 +54,9 @@ public interface DaoIdentity { " AND account.synchronize") LiveData> liveComposableIdentities(Long account); - @Query("SELECT * FROM identity WHERE account = :account") + @Query("SELECT * FROM identity" + + " WHERE account = :account" + + " ORDER BY name COLLATE NOCASE") List getIdentities(long account); @Query("SELECT * FROM identity WHERE id = :id")