We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87e8976 commit 7ae7107Copy full SHA for 7ae7107
app/furniture/marketplace/carts/_cart.html.erb
@@ -16,7 +16,7 @@
16
</tr>
17
</thead>
18
<tbody class="divide-y divide-gray-200 bg-white">
19
- <%- cart.cart_products.each do |cart_product| %>
+ <%- cart.cart_products.order(created_at: :desc).each do |cart_product| %>
20
<%= render Marketplace::CartProductComponent.new(cart_product:) %>
21
<%- end %>
22
</tbody>
0 commit comments