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

</div>

# ListBox.SortedColumn

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

<div class="warning">

<div class="title">

Warning

</div>

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

</div>

## Description

Gets or sets the current sort column but doesn't do the sort. The first column is numbered zero. If no column is sorted then it returns -1. Call the `Sort<listbox.sort>` method to sort the ListBox based on the values of <span class="title-ref">SortedColumn</span> and ColumnSortDirection.

## Compatibility

All projects types on all supported operating systems.
