# 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;

Learn more: [Product grid](/hyper-theme/collections-and-products/collection-page/product-grid.md#filtering-and-sorting)

![](/files/Bs5pObna7Gx0M0imtwiV)
{% 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="/files/nFYCyfGBcsB41rzlfECX" 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="/files/KRYBQYM8AE0igYmOjaFx" 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 %}

## 🙋 Need help?

Something not working? Just drop us a message — we’re happy to help you out! 🚀

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><strong>Contact form</strong></td><td>Connect with us</td><td><a href="https://foxecom.com/pages/contact-us?utm_source=foxecom&#x26;utm_medium=help_center_hyper_change_the_default_sorting_of_a_collection&#x26;utm_campaign=cta_buton">https://foxecom.com/pages/contact-us?utm_source=foxecom&#x26;utm_medium=help_center_hyper_change_the_default_sorting_of_a_collection&#x26;utm_campaign=cta_buton</a></td><td><a href="/files/zSN6nFUSG2LeEjaM53M3">/files/zSN6nFUSG2LeEjaM53M3</a></td></tr><tr><td><strong>Support email</strong></td><td>Connect with us</td><td><a href="mailto:happytohelp@foxecom.com">mailto:happytohelp@foxecom.com</a></td><td><a href="/files/iu8IYiCl3YnRsP99l65S">/files/iu8IYiCl3YnRsP99l65S</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/hyper-theme/faqs/change-the-default-sorting-of-a-collection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
