sorting

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort[C constraints.Ordered](c []C, isReverse bool) []C

Sort() wraps the sort.Slice() function and uses the generic type constraints.Ordered. If true, the bool isReverse parameter can reverse the sort order (descending). If false, the sort order is ascending.

See constraints.Ordered for more information about usable types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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