From 75c771fe745ac8e4bb94c3830baa85144bfdd8da Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 2 Mar 2021 18:56:14 +0200 Subject: [PATCH] Templates: order fallback templates at the bottom of the list --- .../main/java/net/ktnx/mobileledger/dao/TemplateHeaderDAO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/dao/TemplateHeaderDAO.java b/app/src/main/java/net/ktnx/mobileledger/dao/TemplateHeaderDAO.java index bfc2a562..b14502c7 100644 --- a/app/src/main/java/net/ktnx/mobileledger/dao/TemplateHeaderDAO.java +++ b/app/src/main/java/net/ktnx/mobileledger/dao/TemplateHeaderDAO.java @@ -66,7 +66,7 @@ public abstract class TemplateHeaderDAO { }); } - @Query("SELECT * FROM templates ORDER BY UPPER(name)") + @Query("SELECT * FROM templates ORDER BY is_fallback, UPPER(name)") public abstract LiveData> getTemplates(); @Query("SELECT * FROM templates WHERE id = :id") -- 2.39.5