MCPcopy Create free account
hub / github.com/StackExchange/httpunit / Sort

Function Sort

_third_party/github.com/bradfitz/slice/slice.go:25–27  ·  view source on GitHub ↗

Sort sorts the provided slice using the function less. If slice is not a slice, Sort panics.

(slice interface{}, less func(i, j int) bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

TestSortFunction · 0.85
TestSortStructFunction · 0.85
BenchmarkSortInt64NewFunction · 0.85
BenchmarkSortInt32NewFunction · 0.85
BenchmarkSortStructNewFunction · 0.85

Calls 1

SortInterfaceFunction · 0.85

Tested by 5

TestSortFunction · 0.68
TestSortStructFunction · 0.68
BenchmarkSortInt64NewFunction · 0.68
BenchmarkSortInt32NewFunction · 0.68
BenchmarkSortStructNewFunction · 0.68