function table_setSorting<TFeatures, TData>(table, updater): void;function table_setSorting<TFeatures, TData>(table, updater): void;Defined in: features/row-sorting/rowSortingFeature.utils.ts:41
Routes a sorting updater through the table's sorting change handler.
The updater may be a next SortingState array or a function of the previous sorting state, matching the instance table.setSorting behavior.
TFeatures extends TableFeatures
TData extends RowData
Table_Internal<TFeatures, TData>
void
table_setSorting(table, (old) => [...old, { id: 'age', desc: true }])table_setSorting(table, (old) => [...old, { id: 'age', desc: true }])