API reference: @salmonui/data-grid/engine
getSortInfofunction
import { getSortInfo } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/sort.
function getSortInfo(query: DataQuery, columnId: ColumnId): {
readonly direction: 'asc' | 'desc';
readonly priority: number;
} | null;
Per-column header state for renderers: direction and 1-based priority, or null.