# sortedColumns

> The array of column indices for multiple column sorting.

## Definition

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

```csharp
public int[] sortedColumns { get; set; }
```

### Remarks

Use this array to sort your data by multiple columns. The first entry in the array is the primary sorted column. The sorting order for a column index can be determined by using the [MultiColumnHeader.IsSortedAscending](/engine/6000.7/script-reference/unityeditor/imgui/controls/multicolumnheader/issortedascending.md).

Additional Resources: [MultiColumnHeaderState.maximumNumberOfSortedColumns](/engine/6000.7/script-reference/unityeditor/imgui/controls/multicolumnheaderstate/maximumnumberofsortedcolumns.md), [MultiColumnHeaderState.sortedColumnIndex](/engine/6000.7/script-reference/unityeditor/imgui/controls/multicolumnheaderstate/sortedcolumnindex.md).
