---
title: >-
  Adding the ability to sort orders by total item quantity - 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/adding-the-ability-to-sort-orders-by-total-item-quantity
  md: >-
    https://shopify.dev/changelog/adding-the-ability-to-sort-orders-by-total-item-quantity.md
metadata:
  effectiveApiVersion: 2023-07
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2023-06-14T11:22:13-04:00'
  postedAt: '2023-07-01T00:00:00-04:00'
  updatedAt: '2024-12-13T17:24:38-05:00'
  effectiveAt: '2023-07-01T00:00:00-04:00'
---

July 1, 2023

Tags:

* API
* 2023-07

# Adding the ability to sort orders by total item quantity

As of Admin API `2023-07` release we've added `TOTAL_ITEM_QUANTITY` to `OrderSortKeys` so that you can sort orders by the total quantity of items.

For more information on all of the other order sort keys that are available, visit our [developer documentation](https://shopify.dev/docs/api/storefront/2023-07/enums/OrderSortKeys).
