Minion

How to add product sorting to a Shopify collection

Enable Shopify collection sorting, preserve active filters and test product order across mobile, pagination and search result interactions.

Reviewed December 2, 2026 · Minion

Collection sorting lets shoppers choose an order such as price, newest or best selling. Start with the setting in your theme's collection product grid before adding a separate dropdown.

Enable the theme's sort control

  1. Open Online Store > Themes and edit a duplicate theme.
  2. Select a collection template in the theme editor.
  3. Open the product grid or collection section and look for its sorting setting.
  4. Enable sorting, preview the collection and check the mobile interface.

The default order is managed in the collection's settings. A customer's selected sort order changes their browsing view; it does not permanently rearrange the catalog for everyone.

Build custom sorting on Shopify's data

For a custom theme, use the collection's supported sort options and the sort_by URL parameter. Preserve existing filter parameters when changing the sort order, and reset pagination to the beginning of the newly sorted result set.

Do not sort only the product cards already present in the browser. That can make the first page look correct while products on later pages remain in the old order. Sorting belongs to the complete collection result.

Test realistic shopping paths

Apply a vendor or size filter, change the sort order, open a product and return to the collection. Check that the selected control matches the URL and displayed results. Test empty collections, products with similar prices and more than one page of results.

If the storefront uses a custom grid, filter app or load-more behavior, test those features together. Separate scripts should not overwrite each other's URL state or replace the same collection section unpredictably.

References

Put this into practice.

Minion improves Shopify collection browsing with sorting, filtering and pagination that work together across devices.

Talk to MinionExplore our services