Skip to content

Commit 7ae7107

Browse files
committed
Order the CartProduct nicely
1 parent 87e8976 commit 7ae7107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/furniture/marketplace/carts/_cart.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</tr>
1717
</thead>
1818
<tbody class="divide-y divide-gray-200 bg-white">
19-
<%- cart.cart_products.each do |cart_product| %>
19+
<%- cart.cart_products.order(created_at: :desc).each do |cart_product| %>
2020
<%= render Marketplace::CartProductComponent.new(cart_product:) %>
2121
<%- end %>
2222
</tbody>

0 commit comments

Comments
 (0)