# Most-relevant sort order

**URL:** <https://community.shopify.dev/t/most-relevant-sort-order/32955>\
**Category:** GraphQL Admin API Troubleshooting\
**Tags:** general-gql-troubles\
**Created:** [April 3, 2026, 5:55pm UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955 "2026-04-03T17:55:15Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Merchbees](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Merchbees](https://community.shopify.dev/u/Merchbees)\
**Post date:** [April 3, 2026, 5:55pm UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/1 "2026-04-03T17:55:15Z")

</div>

Recently I noticed a new collection sort order as most-relevant which is not documented anywhere. Can someone from shopify team explain if there is an addition here [Collection - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/2026-07/objects/Collection) or in collection webhooks?

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [April 6, 2026, 11:59am UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/2 "2026-04-06T11:59:10Z")

</div>

Hey @Merchbees, good catch! `most-relevant` is a new collection sort option that recently went live for all merchants. It’s a valid sort order value, not a glitch.

It sorts products by relevancy, and new collections default to this sort order. Existing collections are unaffected, all previous sort options remain available, and merchants can switch at any time.

You’re right that the [CollectionSortOrder](https://shopify.dev/docs/api/admin-graphql/latest/enums/CollectionSortOrder) enum reference and the collection webhook payload docs haven’t been updated to reflect this yet. If your app processes collection sort orders, I’d recommend handling `most-relevant` as a valid string value even though it’s not in the enum docs currently. These will be updated in the next little while - thanks for flagging!

---

<div class="post-metadata">

**Author:** ![Merchbees](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Merchbees](https://community.shopify.dev/u/Merchbees)\
**Post date:** [April 6, 2026, 12:46pm UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/3 "2026-04-06T12:46:21Z")

</div>

@Donal-Shopify So is this how it works now? What about [API versioning](https://shopify.dev/docs/api/usage/versioning) or [changelog](https://shopify.dev/changelog)?

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [April 6, 2026, 1:50pm UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/5 "2026-04-06T13:50:54Z")

</div>

That’s a valid point. I’ve raised this directly with the collections team, including the missing changelog entry and documentation gap. I’ll update this thread once I hear back.

---

<div class="post-metadata">

**Author:** ![Merchbees](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Merchbees](https://community.shopify.dev/u/Merchbees)\
**Post date:** [April 6, 2026, 4:32pm UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/6 "2026-04-06T16:32:22Z")

</div>

You said it went live for all merchants. Where is this option, I can’t see it?

 ![image](https://global.discourse-cdn.com/shopifycommunity/original/3X/3/4/3429eff75da0554fff0e2037cc617f650c669e79.png)

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [April 7, 2026, 8:07am UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/7 "2026-04-07T08:07:48Z")

</div>

I heard back from the collections team and need to correct what I said earlier about this being live for all merchants. The most-relevant sort order is rolling out gradually and is currently active on a small percentage of stores, which is likely why you’re not seeing it in the admin.

On the versioning side, a changelog entry is planned to coincide with the rollout reaching 100%, and the [CollectionSortOrder](https://shopify.dev/docs/api/admin-graphql/latest/enums/CollectionSortOrder) GraphQL enum update is tracking to be added to the 2026-07 release candidate. Your point about this needing a changelog entry was valid and has been raised with the team directly.

Thanks again for raising the inconsistencies you noticed with us.

---

<div class="post-metadata">

**Author:** ![Merchbees](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Merchbees](https://community.shopify.dev/u/Merchbees)\
**Post date:** [April 7, 2026, 8:54am UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/8 "2026-04-07T08:54:15Z")

</div>

You released a new feature without notifying developers, and there has been no changelog or versioning added.

Could you please handle this more properly—for example, by rolling it out through dev stores first so we can test unexpected features?

Also, for resources that use sort order (such as collections → products → sort key), this new value should be included. If the feature is already live, could you add this sort key to the existing API versions as well?

At the moment, I don’t see the new `sort_key` in version 2026-07, and the sort order doesn’t include this key either, despite your earlier mention. [CollectionSortOrder - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/2026-07/enums/CollectionSortOrder)

---

<div class="post-metadata">

**Author:** ![Merchbees](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Merchbees](https://community.shopify.dev/u/Merchbees)\
**Post date:** [April 7, 2026, 9:24am UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/9 "2026-04-07T09:24:05Z")

</div>

@Donal-Shopify can you please explain is this relevance and this new most-relevant have any relationship?

Can you also make sure that new key is added here as well [ProductCollectionSortKeys - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/latest/enums/productcollectionsortkeys)

> **[Removing unnecessary RELEVANCE sort options - Shopify developer changelog](https://shopify.dev/changelog/removing-unnecessary-relevance-sort-options)**
>
> Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities.

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [April 7, 2026, 9:53am UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/10 "2026-04-07T09:53:59Z")

</div>

The feedback on the rollout process is fair and I’ve passed it along directly. The 2026-07 release candidate hasn’t been released yet, which is why the [CollectionSortOrder](https://shopify.dev/docs/api/admin-graphql/latest/enums/CollectionSortOrder) enum doesn’t show the value. It will be added before 2026-07 is released.

The [RELEVANCE sort key in ProductCollectionSortKeys](https://shopify.dev/docs/api/admin-graphql/latest/enums/ProductCollectionSortKeys) and the new most-relevant collection sort order are separate things. `RELEVANCE` is a query-time sort key that applies when you pass a search query to a products connection. The `most-relevant` sort order is the collection-level default that determines how products are arranged when no explicit sort is requested.

The [changelog entry about removing unnecessary RELEVANCE sort options](https://shopify.dev/changelog/removing-unnecessary-relevance-sort-options) was about cleaning up `RELEVANCE` from connections where it only worked with a search query, unrelated to this new sort order.

There isn’t a corresponding value in ProductCollectionSortKeys for the Storefront API at this time. Using `COLLECTION_DEFAULT` as the sort key will respect whatever the collection’s default sort order is.

---

<div class="post-metadata">

**Author:** ![Merchbees](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Merchbees](https://community.shopify.dev/u/Merchbees)\
**Post date:** [April 7, 2026, 4:47pm UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/11 "2026-04-07T16:47:34Z")

</div>

@Donal-Shopify Can you explain how this new sort order behaves in practice in detail?

---

<div class="post-metadata">

**Author:** ![Merchbees](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Merchbees](https://community.shopify.dev/u/Merchbees)\
**Post date:** [April 8, 2026, 4:58pm UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/12 "2026-04-08T16:58:46Z")

</div>

@Liam-Shopify Can you help us handle this situation so we can properly support the increasing number of customers using this new sort order by default?

Also @Donal-Shopify can you explain why ProductCollectionSortKeys won’t include it? It’s not a storefront API. [Collection - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/latest/objects/Collection#field-Collection.fields.products.arguments.sortKey)

This is an important API where we get the product order in a collection based on the sort key like best-selling.

In addition to the GraphQL resources, there are two REST Admin APIs that support updating the sort order, where this new sort order also needs to be included.

> **[SmartCollection](https://shopify.dev/docs/api/admin-rest/latest/resources/smartcollection#properties)**
>
> Create or update smart collections by defining selection conditions. Products that match the conditions are included in the collection automatically.

> **[CustomCollection](https://shopify.dev/docs/api/admin-rest/latest/resources/customcollection)**
>
> Manage a store's custom collections. A custom collection is one where products are included manually, as opposed to being included automatically because they meet selection conditions.

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [April 15, 2026, 8:54am UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/13 "2026-04-15T08:54:52Z")

</div>

Apologies for the delay on this, @Merchbees. I followed up with the team again and have answers to your remaining questions.

The most-relevant sort order uses relevancy signals to surface products that are performing well within a collection. The algorithm will be refined over time as Shopify tests improvements, so the ranking you see today may get smarter in future iterations. When a collection uses this sort order, the products connection respects it through the existing `COLLECTION_DEFAULT` sort key.

For [ProductCollectionSortKeys](https://shopify.dev/docs/api/admin-graphql/latest/enums/ProductCollectionSortKeys), `COLLECTION_DEFAULT` already covers this use case. When you query `Collection.products` with `sortKey: COLLECTION_DEFAULT`, the API returns products in whatever order the collection is configured to use, including most-relevant. That’s the way to retrieve products in this sort order through the API today.

The [CollectionSortOrder](https://shopify.dev/docs/api/admin-graphql/latest/enums/CollectionSortOrder) GraphQL enum is confirmed to be getting a `MOST_RELEVANT` value as part of the 2026-07 release. A changelog entry is also planned once the rollout reaches 100% of stores. In the meantime, your app should treat `most-relevant` as a valid sort order value if it appears in collection data.

I hear your frustration on the rollout process, and that feedback has been passed along directly. Appreciate you raising it with us.

---

<div class="post-metadata">

**Author:** ![Merchbees](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Merchbees](https://community.shopify.dev/u/Merchbees)\
**Post date:** [April 17, 2026, 7:00pm UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/14 "2026-04-17T19:00:43Z")

</div>

Thanks @Donal-Shopify

There are cases where `collection_default` is manual so that apps can control the sort order. In this case, how can we get the sort order of `MOST_RELEVANT`? That’s why we need `MOST_RELEVANT` added to [ProductCollectionSortKeys - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/2026-07/enums/ProductCollectionSortKeys) , just like `BEST_SELLING`, since they both have blackbox ordering.

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [April 24, 2026, 8:52am UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/16 "2026-04-24T08:52:32Z")

</div>

Good point! I’ve gone back to the collections team to ask whether `MOST_RELEVANT` is planned for [`ProductCollectionSortKeys`](https://shopify.dev/docs/api/admin-graphql/latest/enums/ProductCollectionSortKeys) alongside `BEST_SELLING`, and what the intended path is for apps that manage sort order themselves. I’ll update this thread once I hear back.

---

<div class="post-metadata">

**Author:** ![Donal-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/donal-shopify/32/10850_2.png) [@Donal-Shopify](https://community.shopify.dev/u/Donal-Shopify)\
**Post date:** [April 28, 2026, 8:22am UTC](https://community.shopify.dev/t/most-relevant-sort-order/32955/18 "2026-04-28T08:22:22Z")

</div>

Hi @Merchbees, I heard back from the Collections team on the intended path here.

For `ProductCollectionSortKeys`, the guidance is to use [RELEVANCE](https://shopify.dev/docs/api/admin-graphql/2026-07/enums/ProductCollectionSortKeys) on [Collection.products](https://shopify.dev/docs/api/admin-graphql/2026-07/objects/Collection#connection-products) when you want the collection’s most-relevant ordering at query time.

```graphql
query {
  collection(id: "gid://shopify/Collection/123") {
    products(first: 50, sortKey: RELEVANCE) {
      nodes {
        id
        title
      }
    }
  }
}

```

That means if your app has set the collection default to `MANUAL`, you can still request the most-relevant product order for a specific query without changing the collection’s configured default sort order.

Separately, the 2026-07 RC docs (e.g [CollectionSortOrder](https://shopify.dev/docs/api/admin-graphql/2026-07/enums/CollectionSortOrder)) have been updated for the new `MOST_RELEVANT` collection sort option. That is the collection-level sort order value, while `RELEVANCE` is the query-time sort key for `Collection.products`.
