Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
148
func
(l LabelNames) Less(i, j int) bool {
149
return
l[i] < l[j]
150
}
151
152
func
(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