Shopify collection order guide

Fix “Can’t reorder products unless collection is manually sorted”

What you’ll need

  • Shopify’s free GraphiQL app (with read_products, write_products access)

    How to get this: Shopify’s free GraphiQL app
    1. Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
    2. Then open it any time from Apps › Shopify GraphiQL App in your admin.

    Step-by-step guide (opens in a new tab)

Write both steps for my collection

Fix it in the admin

  1. Products › Collections › open the collection.
  2. Next to Products, change Sort to Manually.
  3. Run your reorder again.

Fix it in the same mutation

Fields in a GraphQL mutation run one after another, so you can switch the sort and reorder in one call.

Switch to manual, then reorder
mutation {
  sort: collectionUpdate(input: { id: "gid://shopify/Collection/123", sortOrder: MANUAL }) {
    collection { sortOrder }
    userErrors { message }
  }
  reorder: collectionReorderProducts(id: "gid://shopify/Collection/123", moves: [
    { id: "gid://shopify/Product/456", newPosition: "0" }
  ]) {
    job { id done }
    userErrors { message }
  }
}

Going back to the old sort

Switching back to Best selling, Price or any other automatic sort puts the collection back in that order, so the undo is a single collectionUpdate with the old sortOrder.

More guides