Anchor to CollectionSortOrderCollection
CollectionSortOrder
enum
Specifies the sort order for the products in the collection.
Anchor to Valid valuesValid values
- Anchor to ALPHA_ASCALPHA_ASC•
Alphabetically, in ascending order (A - Z).
- Anchor to ALPHA_DESCALPHA_DESC•
Alphabetically, in descending order (Z - A).
- Anchor to BEST_SELLINGBEST_SELLING•
By best-selling products.
- Anchor to CREATEDCREATED•
By date created, in ascending order (oldest - newest).
- Anchor to CREATED_DESCCREATED_DESC•
By date created, in descending order (newest - oldest).
- Anchor to MANUALMANUAL•
In the order set manually by the merchant.
- Anchor to PRICE_ASCPRICE_ASC•
By price, in ascending order (lowest - highest).
- Anchor to PRICE_DESCPRICE_DESC•
By price, in descending order (highest - lowest).
Was this section helpful?
Anchor to FieldsFields
- •OBJECT
The order in which the products in the collection are displayed by default in the Shopify admin and in sales channels, such as an online store.
- •INPUT OBJECT
The order in which the collection's products are sorted.
Was this section helpful?