API reference: @salmonui/data-grid/engine
orderLeavesfunction
import { orderLeaves } from '@salmonui/data-grid/engine';function orderLeaves<Row>(leaves: readonly CompiledColumn<Row>[], order: readonly ColumnId[] | null): CompiledColumn<Row>[];
Leaves in runtime order: the explicit order first, then the remaining leaves in definition order.