# SortingButton(Column, Rect, int)

> Provides the button logic for a column header and the rendering of the sorting arrow (if visible).

## Definition

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

```csharp
protected void SortingButton(MultiColumnHeaderState.Column column, Rect headerRect, int columnIndex)
```

### Parameters

**** (\[Column]\(/engine/6000.3/script-reference/unityeditor/imgui/controls/multicolumnheaderstate/column)): Column data.**** (\[Rect]\(/engine/6000.3/script-reference/unityengine/rect)): Column header rect.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Column index.

### Remarks

Can be used if overriding [MultiColumnHeader.ColumnHeaderGUI](/engine/6000.3/script-reference/unityeditor/imgui/controls/multicolumnheader/columnheadergui.md) to provide the default behavior when clicking a column header.
