Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetSortingColumns(int[], bool[])

Sets multiple sorting columns and the associated sorting orders.
Read time 1 minuteLast updated 6 days ago

Definition

public void SetSortingColumns(int[] columnIndices, bool[] sortAscending)

Parameters

columnIndices

Column indices of the sorted columns.

sortAscending

Sorting order for the column indices specified.

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.