Product Collection Sort Keys
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 <a href="/docs/api/storefront/unstable/enums/ProductCollectionSortKeys#enums-RELEVANCE"><code><span class="PreventFireFoxApplyingGapToWBR">R<wbr/>E<wbr/>L<wbr/>E<wbr/>V<wbr/>A<wbr/>N<wbr/>C<wbr/>E</span></code></a> key applies only when you specify a search query.
Anchor to Valid valuesValid values
- BEST_SELLING
- COLLECTION_DEFAULT
- CREATED
- ID
- MANUAL
- PRICE
- RELEVANCE
- TITLE
- Anchor to BEST_SELLINGBEST_
SELLING Sort by the
best-sellingvalue.- Anchor to COLLECTION_DEFAULTCOLLECTION_
DEFAULT Sort by the
collection-defaultvalue.- Anchor to CREATEDCREATED
Sort by the
createdvalue.Sort by the
idvalue.- Anchor to MANUALMANUAL
Sort by the
manualvalue.- Anchor to PRICEPRICE
Sort by the
pricevalue.- Anchor to RELEVANCERELEVANCE
Sort by relevance to the search terms when the
queryparameter is specified on the connection. Don't use this sort key when no search query is specified.- Anchor to TITLETITLE
Sort by the
titlevalue.
Anchor to FieldsFields
- •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
information, an optionalImage, and supports custom data throughmetafields.