Debian Codegraph @

vendor/github.com/xyproto/gfx/sort.go

raw
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 }