<div class="meta" robots="noindex">

</div>

# ListBox.ColumnSortDirection

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `DesktopListBox.ColumnSortDirectionAt<desktoplistbox.columnsortdirectionat>` as a replacement.

</div>

## Description

Used to get or set the sort direction for the passed column. The first column is numbered zero.

## Notes

### Notes==

You set the sort direction using one of the following class constants.

| Value          | Class Constant  | Description    |
|----------------|-----------------|----------------|
|                |                 |                |
| SortDescending | Descending sort |                |
| 0              | SortNone        | Dont Sort      |
| 1              | SortAscending   | Ascending sort |

## Sample code

This example sets the sort direction for a column.

``` xojo
ListBox1.ColumnSortDirection(2) = ListBox.SortDescending
```

## Compatibility

All projects types on all supported operating systems.

## See also

`ListBox</api/deprecated/listbox>` parent class; `Sort<listbox.sort>`.
