ProductCollectionSortKeys

The set of valid sort keys for the products query.

Show definition

# The set of valid sort keys for the products query.
enum ProductCollectionSortKeys {
  # Sort by the manual value.
  MANUAL

# Sort by the best-selling value. BEST_SELLING

# Sort by the title value. TITLE

# Sort by the price value. PRICE

# Sort by the created value. CREATED

# Sort by the collection-default value. COLLECTION_DEFAULT

# Sort by the id value. ID

# During a search (i.e. when the query parameter has been specified on the connection) this sorts the # results by relevance to the search term(s). When no search query is specified, this sort key is not # deterministic and should not be used. RELEVANCE }

Values

TITLE

Sort by the title value.

COLLECTION_DEFAULT

Sort by the collection-default value.

CREATED

Sort by the created value.

ID

Sort by the id value.

MANUAL

Sort by the manual value.

PRICE

Sort by the price value.

RELEVANCE

During a search (i.e. when the query parameter has been specified on the connection) this sorts the results by relevance to the search term(s). When no search query is specified, this sort key is not deterministic and should not be used.

BEST_SELLING

Sort by the best-selling value.

Sign up for a Partner account to get started.

Sign up