Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/common
/ Less
Method
Less
model/labels.go:159–161 ·
view source on GitHub ↗
(i, j int)
Source
from the content-addressed store, hash-verified
157
}
158
159
func
(l LabelNames) Less(i, j int) bool {
160
return
l[i] < l[j]
161
}
162
163
func
(l LabelNames) Swap(i, j int) {
164
l[i], l[j] = l[j], l[i]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected