# maximumNumberOfSortedColumns

> This property controls the maximum number of columns returned by the sortedColumns property.

## Definition

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

```csharp
public int maximumNumberOfSortedColumns { get; set; }
```

### Remarks

This property controls the maximum number of columns returned by the sortedColumns property. It is set to a default value of 3 which means that the 3 most recent changes to column sorting are stored. Use the [MultiColumnHeaderState.sortedColumns](/engine/6000.5/script-reference/unityeditor/imgui/controls/multicolumnheaderstate/sortedcolumns.md) property to sort your data by multiple columns.

Additional Resources: [MultiColumnHeaderState.sortedColumns](/engine/6000.5/script-reference/unityeditor/imgui/controls/multicolumnheaderstate/sortedcolumns.md).
