[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TSortDirection

Represents the sort direction used for items in a list view control.

## Declaration

Source position: comctrls.pp line 1378

`type TSortDirection = (`
`sdAscending,` |  | Sorts list items in ascending order.
`sdDescending` |  | Sorts list items in descending order.
`);`

## Description

TSortDirection is the type used to implement the SortDirection property in TCustomListView.

## See also

TCustomListView.SortDirection |  | Sorting direction (order) for the current SortColumn.
TCustomListView.SortColumn |  | Ordinal position for the column used to sort the list items, or -1 when not assigned.
TCustomListView.Sort |  | Sorts the values in Items using the SortType, SortColumn, and SortDirection for the control.
TCustomListView.AlphaSort |  | Sorts the first column for the list view control in ascending alphabetic order.
TCustomListView.CustomSort |  | Sorts the Items for the list view control using the specified procedure or the OnCompare event handler.