moveColumn

fun moveColumn(key: String, toIndex: Int)(source)

Moves one column to a position among the others, the way dragging its header would.

Positions are counted over the visible leaf columns in display order, frozen ones first. A key that is not on display, or an index outside the table, is clamped or ignored rather than throwing.