# BUYCollectionSort Constants Reference

Declared in | BUYClient.h

### BUYCollectionSort

The sort order for products in a collection

#### Definition

`typedef NS_ENUM(NSUInteger, BUYCollectionSort ) {
BUYCollectionSortCollectionDefault,
BUYCollectionSortBestSelling,
BUYCollectionSortTitleAscending,
BUYCollectionSortTitleDescending,
BUYCollectionSortPriceAscending,
BUYCollectionSortPriceDescending,
BUYCollectionSortCreatedAscending,
BUYCollectionSortCreatedDescending,
};`

#### Constants

`BUYCollectionSortCollectionDefault`

  Sort products by best selling using the order set in the shop’s admin

  Declared In `BUYClient.h`.

`BUYCollectionSortBestSelling`

  Sort products by best selling

  Declared In `BUYClient.h`.

`BUYCollectionSortTitleAscending`

  Sort products by title, ascending

  Declared In `BUYClient.h`.

`BUYCollectionSortTitleDescending`

  Sort products by title, descending

  Declared In `BUYClient.h`.

`BUYCollectionSortPriceAscending`

  Sort products by price (first variant), ascending

  Declared In `BUYClient.h`.

`BUYCollectionSortPriceDescending`

  Sort products by price (first variant), descending

  Declared In `BUYClient.h`.

`BUYCollectionSortCreatedAscending`

  Sort products by creation date, ascending

  Declared In `BUYClient.h`.

`BUYCollectionSortCreatedDescending`

  Sort products by creation date, descending

  Declared In `BUYClient.h`.

#### Declared In

`BUYClient.h`