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)


Public Enumeration SortDirection
Dim instance As SortDirection
public enum SortDirection
public enum class SortDirection
type SortDirection
public enum SortDirection


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.


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


System.Web.Helpers Namespace