Documentation > CMS Template API Library > SortOrder > ThenBy(AssetPropertyNames)
ThenBy
Adds an additional built-in field to the current sort order in ascending order.
public CrownPeak.CMSAPI.SortOrder ThenBy(AssetPropertyNames)
Returns
Itself.
Parameters
Name | Description | Type |
---|---|---|
name | The property name. | CrownPeak.CMSAPI.AssetPropertyNames |
Code Example
C#
Sample:
int search = 1630; FilterParams filterParams = new FilterParams(); filterParams.Add(AssetPropertyNames.TemplateId, Comparison.Equals, search); filterParams.Limit = 10; filterParams.SortOrder = SortOrder.ThenBy(AssetPropertyNames.Label); List<Asset> list = Asset.Load("/Site/About Us").GetFilterList(filterParams);