OrderByDesc
Sorts entries in the list in the ascending or descending order. To use this property, set AllowOrderBy to true.
Values
- true. Sorts entries in the descending order: 9 to 0 and/or Z to A.
- false (default). Sorts entries in the ascending order: 0 to 9 and/or A to Z.
Example
Copy
CaseListBlock = CRM.GetBlock('CaseListBlock');
FoundIn = CaseListBlock.AddGridCol('pers_firstname');
FoundIn.AllowOrderBy = true;
FoundIn.OrderByDesc = true;
CRM.AddContent(CaseListBlock.Execute());
Response.Write(CRM.GetPage());
Adds a new column (pers_firstname) to the list and sorts entries in the list by that column in the descending order.