Order By id desc for items.
This commit is contained in:
parent
bdc4f5680b
commit
53c8c241da
@ -11,7 +11,7 @@ import androidx.room.Update
|
|||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
interface ItemsDao {
|
interface ItemsDao {
|
||||||
@Query("SELECT * FROM items")
|
@Query("SELECT * FROM items order by id desc")
|
||||||
fun items(): List<ItemEntity>
|
fun items(): List<ItemEntity>
|
||||||
|
|
||||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||||
|
Loading…
Reference in New Issue
Block a user