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
- Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
- Then open it any time from Apps › Shopify GraphiQL App in your admin.
Write both steps for my collection
Fix it in the admin
- Products › Collections › open the collection.
- Next to Products, change Sort to Manually.
- 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.
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.