CollectionSortOrder enum

Version unstable

Specifies the sort order for the products in the collection.

Values

  • ALPHA_ASC

    Alphabetically, in ascending order (A - Z).

  • ALPHA_DESC

    Alphabetically, in descending order (Z - A).

  • BEST_SELLING

    By best-selling products.

  • CREATED

    By date created, in ascending order (oldest - newest).

  • CREATED_DESC

    By date created, in descending order (newest - oldest).

  • MANUAL

    In the order set manually by the merchant.

  • PRICE_ASC

    By price, in ascending order (lowest - highest).

  • PRICE_DESC

    By price, in descending order (highest - lowest).

Types that return CollectionSortOrder

Version 2021-10 (Release candidate)

Specifies the sort order for the products in the collection.

Values

  • ALPHA_ASC

    Alphabetically, in ascending order (A - Z).

  • ALPHA_DESC

    Alphabetically, in descending order (Z - A).

  • BEST_SELLING

    By best-selling products.

  • CREATED

    By date created, in ascending order (oldest - newest).

  • CREATED_DESC

    By date created, in descending order (newest - oldest).

  • MANUAL

    In the order set manually by the merchant.

  • PRICE_ASC

    By price, in ascending order (lowest - highest).

  • PRICE_DESC

    By price, in descending order (highest - lowest).

Types that return CollectionSortOrder

Version 2021-07 (Latest)

Specifies the sort order for the products in the collection.

Values

  • ALPHA_ASC

    Alphabetically, in ascending order (A - Z).

  • ALPHA_DESC

    Alphabetically, in descending order (Z - A).

  • BEST_SELLING

    By best-selling products.

  • CREATED

    By date created, in ascending order (oldest - newest).

  • CREATED_DESC

    By date created, in descending order (newest - oldest).

  • MANUAL

    In the order set manually by the merchant.

  • PRICE_ASC

    By price, in ascending order (lowest - highest).

  • PRICE_DESC

    By price, in descending order (highest - lowest).