Order By id desc for items.

This commit is contained in:
Amine 2018-10-14 18:56:07 +02:00
parent bdc4f5680b
commit 53c8c241da

View File

@ -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<ItemEntity>
@Insert(onConflict = OnConflictStrategy.REPLACE)