Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiSorter ¶
type MultiSorter struct {
// contains filtered or unexported fields
}
MultiSorter handles multi-column sorting with precedence.
func NewMultiSorter ¶
func NewMultiSorter(sorters ...*Sorter) *MultiSorter
NewMultiSorter creates a multi-column sorter. Sorters are applied in order (primary, secondary, etc.).
type Sorter ¶
Sorter handles single column sorting.
func NewSorter ¶
NewSorter creates a sorter for a single column. DataType is set to String by default, use WithDataType() to override.
func ParseSortSpec ¶
ParseSortSpec parses CLI sort specification. Format: "column1:asc,column2:desc" or "column1:ascending,column2:descending".
func (*Sorter) WithDataType ¶
WithDataType sets explicit data type for type-aware sorting.
Click to show internal directories.
Click to hide internal directories.