Skip to content

Package sort

Package sort provides primitives for sorting slices and user-defined collections.

Note: As of Go 1.22, some functions simply call the corresponding functions in the slices package.

Useful Functions:

Ints(x []int)
Strings(x []string)
Slice(x any, less func(i, j int) bool)