From 53c8c241dae869144faac80537b85d8d0b304a6a Mon Sep 17 00:00:00 2001 From: Amine Date: Sun, 14 Oct 2018 18:56:07 +0200 Subject: [PATCH] Order By id desc for items. --- .../apps/amine/bou/readerforselfoss/persistence/dao/ItemsDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/persistence/dao/ItemsDao.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/persistence/dao/ItemsDao.kt index fd89349..8845640 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/persistence/dao/ItemsDao.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/persistence/dao/ItemsDao.kt @@ -11,7 +11,7 @@ import androidx.room.Update @Dao interface ItemsDao { - @Query("SELECT * FROM items") + @Query("SELECT * FROM items order by id desc") fun items(): List @Insert(onConflict = OnConflictStrategy.REPLACE)