# OnSortingChanged()

> Called when sorting changes and dispatches the MultiColumnHeader.sortingChanged event.

## Definition

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

```csharp
protected virtual void OnSortingChanged()
```

### Remarks

Can be overridden to control the dispatching of the [MultiColumnHeader.sortingChanged](/engine/6000.5/script-reference/unityeditor/imgui/controls/multicolumnheader/sortingchanged.md) event.
