k9s/internal/ui/sorter.go

18 lines
304 B
Go

package ui
import (
"github.com/derailed/k9s/internal/render"
)
type (
// SortFn represent a function that can sort columnar data.
SortFn func(rows render.Rows, sortCol SortColumn)
// SortColumn represents a sortable column.
SortColumn struct {
index int
colCount int
asc bool
}
)