From ebf2d1a89580049229214d1b6d902f3147a4ab8f Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 27 Jun 2019 10:09:24 +0200 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/DaoIdentity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")