# IsSortedAscending(int)

> Check the sorting order state for a column.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.6/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public bool IsSortedAscending(int columnIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Column index.

### Returns

| Type                                                          | Description               |
| ------------------------------------------------------------- | ------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if sorted ascending. |

### Remarks

This function checks and returns the sorting order; true for ascending order and false for descending order. The order is preserved for each column so it can be used to sort other columns. Use [MultiColumnHeader.sortedColumnIndex](/engine/6000.6/script-reference/unityeditor/imgui/controls/multicolumnheader/sortedcolumnindex.md) to check if any column is actively used for sorting. You can then use that column index to get the sorting order.
