- I have a product list and a shopping cart.
- I add the products to the cart.
- As the first item in the list of products added to the cart I want to view the last product I added. How can I view the list of products added according to this order?
Asked
Active
Viewed 24 times
0

user19846644
- 17
- 7
-
Just order the items in the viewmodel – Gabriele Mariotti Oct 25 '22 at 17:58
-
You need to add the logic to sort the products as required in the Viewmodel – Nikhil Dupally Oct 26 '22 at 07:51
-
Sort items object list according to some values of the item such as maybe time of adding, itemid generated while adding etc. and do the logic in viewmodel, expose it to the lazycolumn. cheers – Bijosh Mohan Oct 26 '22 at 13:19