--- title: Cart Line Items Now Ordered in Reverse Chronological Order Based on Time of Addition - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/cart-line-items-now-ordered-in-reverse-chronological-order-based-on-time-of-addition md: https://shopify.dev/changelog/cart-line-items-now-ordered-in-reverse-chronological-order-based-on-time-of-addition.md --- [Back to Developer changelog](https://shopify.dev/changelog) October 1, 2023 Tags: * API * 2023-10 # Cart Line Items Now Ordered in Reverse Chronological Order Based on Time of Addition As of API version **2023-10**, we've made changes to the ordering of line items in the cart. In the past, newly added items were placed at the end of the cart without explicit sorting. Now, line items will be sorted in reverse order by the time they were added to the cart, meaning the most recently added items will be positioned at the top. Developers, be aware that this change could affect the ordering of cart items in your applications. If your app or store's functionality relies on the order of line items or an item's position in the cart, this update is especially relevant to you.