---
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
metadata:
  effectiveApiVersion: 2023-10
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2023-07-17T08:16:20-04:00'
  postedAt: '2023-10-01T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:38-05:00'
  effectiveAt: '2023-10-01T00:00:00-04:00'
---

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.
