sort

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asc

func Asc[T Ordered](a, b T) Bool3VL

func BlobAsc

func BlobAsc(a, b []byte) Bool3VL

func BlobDesc

func BlobDesc(a, b []byte) Bool3VL

func BoolAsc

func BoolAsc(a, b bool) Bool3VL

func BoolDesc

func BoolDesc(a, b bool) Bool3VL

func CombineSortLessFuncs

func CombineSortLessFuncs(funcs []func(a, b int) Bool3VL) func(a, b int) bool

func ComplexAsc

func ComplexAsc[T Complex](a, b T) Bool3VL

func ComplexDesc

func ComplexDesc[T Complex](a, b T) Bool3VL

func Desc

func Desc[T Ordered](a, b T) Bool3VL

func Dummy

func Dummy(a, b int) Bool3VL

func TAscNullsFirst

func TAscNullsFirst[T any, F func(a, b T) Bool3VL](asc F) func(a, b Nullable[T]) Bool3VL

func TAscNullsLast

func TAscNullsLast[T any, F func(a, b T) Bool3VL](asc F) func(a, b Nullable[T]) Bool3VL

func TDescNullsFirst

func TDescNullsFirst[T any, F func(a, b T) Bool3VL](desc F) func(a, b Nullable[T]) Bool3VL

func TDescNullsLast

func TDescNullsLast[T any, F func(a, b T) Bool3VL](desc F) func(a, b Nullable[T]) Bool3VL

func TimeAsc

func TimeAsc(a, b time.Time) Bool3VL

func TimeDesc

func TimeDesc(a, b time.Time) Bool3VL

func TimeRangeAsc

func TimeRangeAsc(a, b TimeRange) Bool3VL

func TimeRangeDesc

func TimeRangeDesc(a, b TimeRange) Bool3VL

Types

type SortType

type SortType int
const (
	SortType_Asc SortType = iota + 1
	SortType_Desc
	SortType_AscNullsFirst
	SortType_DescNullsFirst
	SortType_AscNullsLast
	SortType_DescNullsLast
)

Jump to

Keyboard shortcuts

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