function column_getAutoSortDir<TFeatures, TData, TValue>(column): "asc" | "desc";Defined in: features/row-sorting/rowSortingFeature.utils.ts:181
Chooses the default first sort direction from sampled filtered row values.
The first non-nullish value among the sampled rows decides: string columns start ascending so alphabetical order is natural; other value types (or columns with no non-nullish sample) start descending. Sampling past leading nullish values keeps the toggle cycle stable when sorting or a data swap moves an empty value into the first row.
TFeatures extends TableFeatures
TData extends RowData
TValue extends unknown = unknown
Column_Internal<TFeatures, TData, TValue>
"asc" | "desc"
const direction = column_getAutoSortDir(column)