setSort

fun setSort(column: C, order: SortOrder? = null)

Toggle or set sorting for a column. If order is null, cycles ASC -> DESC -> none.

A no-op while row reorder is enabled, mirroring the initialSort normalization in rememberTableState: under an active sort the view is invariant to source permutations, so drag history would be unobservable — the two features cannot both apply.