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

Method Less

model/value.go:349–349  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

347
348func (m Matrix) Len() int { return len(m) }
349func (m Matrix) Less(i, j int) bool { return m[i].Metric.Before(m[j].Metric) }
350func (m Matrix) Swap(i, j int) { m[i], m[j] = m[j], m[i] }
351
352func (mat Matrix) String() string {

Callers

nothing calls this directly

Calls 1

BeforeMethod · 0.45

Tested by

no test coverage detected