MCPcopy Index your code
hub / github.com/coder/coder / Less

Method Less

agent/filefinder/query.go:284–284  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

282
283func (h resultHeap) Len() int { return len(h) }
284func (h resultHeap) Less(i, j int) bool { return h[i].Score < h[j].Score }
285func (h resultHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] }
286func (h *resultHeap) Push(x interface{}) {
287 r, ok := x.(Result)

Calls

no outgoing calls