☰
Debian Codegraph
@
1.7.1-1
/
/
vendor
/
github.com
/
xyproto
/
gfx
/
sort.go
☽
☼
vendor/github.com/xyproto/gfx/sort.go
code
plain
raw
MIT
2019-2025 Peter Hellberg <
[email protected]
>
debian/copyright
1
//go:build !tinygo
2
// +build !tinygo
3
4
package gfx
5
6
import "sort"
7
8
// SortSlice sorts the provided slice given the provided less function.
9
func SortSlice(slice interface{}, less func(i, j int) bool) {
10
sort.Slice(slice, less)
11
}