You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > ContentList Class > ContentList Properties > OrderByDirection
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ContentList.OrderByDirection Property

Determines how to order content in the list. The sort field is determined by the OrderKey property.

  • ascending - items are arranged A, B, C or 1,2,3.
  • descending - items are arranged. Z,Y,X or 3,2,1.
If sorting by date, descending puts the most recent first. 

When ascending is selected and the Orderkey property is set to OrderOfTheIds, the order of the IDs are preserved. When set to descending, the order is reversed.

C#
[Bindable(true)]
[Category("Ektron")]
[DefaultValue(EkEnumeration.OrderByDirection.Ascending)]
[Description("Direction for sorting results, 'ascending' or 'descending'.")]
public Ektron.Cms.Common.EkEnumeration.OrderByDirection OrderByDirection;
Visual Basic
<Bindable(true)>
<Category("Ektron")>
<DefaultValue(EkEnumeration.OrderByDirection.Ascending)>
<Description("Direction for sorting results, 'ascending' or 'descending'.")>
Public Property OrderByDirection() As Ektron.Cms.Common.EkEnumeration.OrderByDirection
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!