Share via


SortDirection Enumeration

Specifies the direction in which to sort a list of items.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public Enumeration SortDirection
'Usage
Dim instance As SortDirection
public enum SortDirection
public enum class SortDirection
type SortDirection
public enum SortDirection

Members

Member name Description
Ascending Sort from smallest to largest —for example, from 1 to 10.

Descending Sort from largest to smallest — for example, from 10 to 1.

Remarks

The SortDirection enumeration is used to represent the direction in which items are sorted. It is used by properties such as the SortDirection property of the WebGrid class.

See Also

Reference

System.Web.Helpers Namespace