Documentation > CMS Template API Library > SortOrder

CrownPeak.CMSAPI.SortOrder

Represents an order by which assets or panels can be sorted. Allows for multiple levels of sorting on both built-in and custom asset fields.

NameDescriptionType
OrderBy(AssetPropertyNames)

Creates an ascending sort order on a built-in field.

Method
OrderBy(String)

Creates an ascending sort order on a custom field.

Method
OrderByDescending(AssetPropertyNames)

Creates a descending sort order on a built-in field.

Method
OrderByDescending(String)

Creates a descending sort order on a custom field.

Method
ThenBy(AssetPropertyNames)

Adds an additional built-in field to the current sort order in ascending order.

Method
ThenBy(String)

Adds an additional custom field to the current sort order in ascending order.

Method
ThenByDescending(AssetPropertyNames)

Adds an additional built-in field to the current sort order in descending order.

Method
ThenByDescending(String)

Adds an additional custom field to the current sort order in descending order.

Method

Connect with CrownPeak