Fixed cached repos not being ordered by settings

This commit is contained in:
Viktor De Pasquale
2019-05-25 18:03:32 +02:00
parent 6e1aefe6d8
commit 8cd3b603df
2 changed files with 14 additions and 2 deletions
@@ -13,7 +13,10 @@ interface RepositoryDao : BaseDao<Repository> {
@Transaction
override fun deleteAll()
@Query("SELECT * FROM repos")
@Query("SELECT * FROM repos ORDER BY lastUpdate DESC")
override fun fetchAll(): List<Repository>
@Query("SELECT * FROM repos ORDER BY name ASC")
fun fetchAllOrderByName(): List<Repository>
}