Documentation ¶
Index ¶
- func Asc[T typez.Ordered](a []T)
- func AscByKey[T any, K typez.Ordered](a []T, keyFn func(T) K)
- func AscStableByKey[T any, K typez.Ordered](a []T, keyFn func(T) K)
- func Desc[T typez.Ordered](d []T)
- func DescByKey[T any, K typez.Ordered](d []T, keyFn func(T) K)
- func DescStableByKey[T any, K typez.Ordered](d []T, keyFn func(T) K)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AscByKey ¶ added in v0.0.15
AscByKey sorts the given slice in ascending order by the key returned by keyFn.
func AscStableByKey ¶ added in v0.0.15
AscStableByKey sorts the given slice in ascending order by the key returned by keyFn.
func DescByKey ¶ added in v0.0.15
DescByKey sorts the given slice in descending order by the key returned by keyFn.
func DescStableByKey ¶ added in v0.0.15
DescStableByKey sorts the given slice in descending order by the key returned by keyFn.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.