Skip to content

Shopify Dude Fix

Shopify Collection Sorting: Why Manual Order Disappears When Customers Use Sort By

Distinguish merchandising order from shopper-selected sorting.

Quick answer: Set the collection’s default order to manual and preserve the customer’s selected sort_by parameter when rendering navigation.
On this page

Why this happens

The collection’s default sort order is not a permanent override. A storefront URL with a valid sort_by parameter can request another ordering.

Implementation

In Products > Collections, open the collection and review its product sort setting. In the theme, derive the selected option from collection.sort_by or collection.default_sort_by. Preserve active filters when changing sorting and reset pagination when the order changes.

Example

{% assign current_sort = collection.sort_by | default: collection.default_sort_by %}
{% for option in collection.sort_options %}
  {{ option.name | escape }}
{% endfor %}

Use each option’s value in the actual select control and mark the current option selected. Do not sort the already paginated product array in Liquid to simulate catalog-wide sorting.

Common misunderstanding: Reordering products in the admin does not override an explicit shopper-selected sort.
How to test this:

  1. Set manual order
  2. open a clean collection URL
  3. select price sorting
  4. apply a filter
  5. move to another page
  6. reset sorting and confirm the original merchandising order returns.
Sources and further reading: Shopify reference ยท Further reading