MCPcopy Create free account
hub / github.com/prometheus/common / Less

Method Less

model/labels.go:179–181  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

177}
178
179func (l LabelValues) Less(i, j int) bool {
180 return string(l[i]) < string(l[j])
181}
182
183func (l LabelValues) Swap(i, j int) {
184 l[i], l[j] = l[j], l[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected