MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / Less

Method Less

pkg/funclet/runtime/cgroup/string.go:164–164  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

162
163func (s sortableSliceOfString) Len() int { return len(s) }
164func (s sortableSliceOfString) Less(i, j int) bool { return lessString(s[i], s[j]) }
165func (s sortableSliceOfString) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
166
167// ListAll returns the contents as a sorted string slice.

Callers

nothing calls this directly

Calls 1

lessStringFunction · 0.85

Tested by

no test coverage detected