Type TableSortState

type TableSortState struct {
	Column    int
	Direction TableSortDirection
}

TableSortState is caller-owned single-column ordering. Its zero value has no active column; Toggle selects ascending first, then alternates both ways.

Methods

Toggle#

func (state TableSortState) Toggle(column int) TableSortState