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

Method Less

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

Source from the content-addressed store, hash-verified

146}
147
148func (l LabelNames) Less(i, j int) bool {
149 return l[i] < l[j]
150}
151
152func (l LabelNames) Swap(i, j int) {
153 l[i], l[j] = l[j], l[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected