sort

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort[T any](items []T, options Options)

Types

type Direction

type Direction int
const (
	DirectionAscending Direction = iota
	DirectionDescending
)

type Options

type Options struct {
	Field string
	Order config.SortOrder
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL