MCPcopy Create free account
hub / github.com/convox/rack / Less

Method Less

pkg/structs/instance.go:37–37  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

35
36func (ii Instances) Len() int { return len(ii) }
37func (ii Instances) Less(i, j int) bool { return ii[i].Id < ii[j].Id }
38func (ii Instances) Swap(i, j int) { ii[i], ii[j] = ii[j], ii[i] }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected