MCPcopy Create free account
hub / github.com/cortexproject/cortex / Less

Method Less

pkg/cortexpb/compat.go:170–170  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

168
169func (s byLabel) Len() int { return len(s) }
170func (s byLabel) Less(i, j int) bool { return strings.Compare(s[i].Name, s[j].Name) < 0 }
171func (s byLabel) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
172
173// MetricMetadataMetricTypeToMetricType converts a metric type from our internal client

Callers 1

Calls 1

CompareMethod · 0.65

Tested by 1