# Change the default sorting of a collection

## 🛠 Before you begin...

Make sure you’ve already set up your **collection(s)** in your Shopify admin.

Not sure how? 👉 [**Watch our step-by-step tutorial**](https://youtu.be/M0DoTpdYPWU) 🎥

## 🔄 Change the Default sorting for any collection

{% hint style="info" %}
This sets the **default sorting** — customers can still change the sort order on the store page if you enable the corresponding setting.&#x20;

![](https://1172126658-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgoStNEbk9Q25TX38NhdE%2Fuploads%2F9r3J2fbiI9llXCgUMn7U%2Fimage.png?alt=media\&token=ad9e1df4-9002-441e-ac42-f6b5c0179009)
{% endhint %}

{% hint style="success" %}
Steps:

1. Go to **Shopify Admin > Products > Collections**.
2. Click on the collection you want to edit.
3. Scroll to the **Products** section.
4. Find the **Sort** dropdown and choose your preferred option:
   * Best selling
   * Product title A-Z
   * Price low to high
   * Newest
   * ...and more!
5. Click **Save** ✅
   {% endhint %}

<figure><img src="https://1172126658-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgoStNEbk9Q25TX38NhdE%2Fuploads%2FGTlUDp7GRsnijG1bZeDc%2Fimage.png?alt=media&#x26;token=0b542597-e1d2-49e2-9755-6fbbaf3d831a" alt=""><figcaption></figcaption></figure>

## 🔄 Change Sorting for the **“All products” collection** (`/collections/all`)

Shopify automatically creates a **default "All Products" page** at the path `/collections/all`

**✏️ How to override `/all` and control sorting** (if you have not had an All products collection in Shopify admin yet)**:**

{% hint style="success" %}
Steps:

1. Go to **Shopify Admin > Products > Collections**.
2. Click **Create collection**.
3. Name it something like **All Products, All, etc**.
4. Under **Collection type**, choose **Automated**.
   * Use a rule like: `Product price is greater than $0` to include all products.
5. Scroll to **Search engine listing preview** and click **Edit website SEO**.
6. Change the **URL handle** to `/all`.
7. Scroll back and set the **Sort** order you prefer (e.g. newest, price low to high).
8. Hit **Save** 🧡
   {% endhint %}

<figure><img src="https://1172126658-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgoStNEbk9Q25TX38NhdE%2Fuploads%2FIGhMIp2nBNA01o3gwi52%2Fimage.png?alt=media&#x26;token=4dde7d1d-02c2-4c93-95b4-487a5ff3da98" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Shopify only allows **one collection** to use `/all` — make sure no other collection is using that handle.
{% endhint %}
