SetSortingColumns(int[], bool[])
Sets multiple sorting columns and the associated sorting orders.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor.IMGUI.Controls
- Assembly: UnityEditor.CoreModule
public void SetSortingColumns(int[] columnIndices, bool[] sortAscending)
Parameters
Remarks
This function sets multiple sorting columns and the associated sorting orders. The first entry is the primary sorted column. It also triggers the MultiColumnHeader.sortingChanged event if the sorting state changes. You can input two empty arrays to clear the sorting columns so no sorting would happen.
Additional Resources: MultiColumnHeader.SetSorting.