Skip to main content
Anchor to ProductCollectionSortKeys

ProductCollectionSortKeys

enum

Sort options for products within a Collection. Used by the products connection to order results by best-selling, price, title, creation date, or the collection's default and manual ordering.


Note

The RELEVANCE key applies only when you specify a search query.


Sort by the best-selling value.

Sort by the collection-default value.

Sort by the created value.

Sort by the id value.

Sort by the manual value.

Sort by the price value.

Sort by relevance to the search terms when the query parameter is specified on the connection. Don't use this sort key when no search query is specified.

Sort by the title value.


Was this section helpful?

•ARGUMENT

A group of products organized by a merchant to make their store easier to browse. Collections can help customers discover related products by category, season, promotion, or other criteria.

Query a collection's products with filtering options like availability, price range, vendor, and tags. Each collection includes SEO information, an optional Image, and supports custom data through metafields.


Was this section helpful?