Order By id desc for items.
This commit is contained in:
1 parent
bdc4f5680b
commit
53c8c241da
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user