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

Method Less

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

Source from the content-addressed store, hash-verified

188}
189
190func (l LabelValues) Less(i, j int) bool {
191 return string(l[i]) < string(l[j])
192}
193
194func (l LabelValues) Swap(i, j int) {
195 l[i], l[j] = l[j], l[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected