The GraphQL Storefront API’s now supports sorting the products on a Category node, using the sortBy parameter. This will match the equivalent sorting behaviors on the BigCommerce Storefront (Stencil).

Consider this query:

query CategoryByUrl { site { route(path: "/shop-all") { node { __typename id ... on Category { name products(first: 20, sortBy: DEFAULT) { # Use sortBy parameter to use any of the available storefront sorts edges { node { name defaultImage { url(width: 360) } } } } } } } } }