MCPcopy Create free account
hub / github.com/pydio/cells / Less

Method Less

cmd/ctl.go:813–818  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

811func (b itemsByType) Len() int { return len(b) }
812
813func (b itemsByType) Less(i, j int) bool {
814 if b[i].it == b[j].it {
815 return b[i].ri.Name() < b[j].ri.Name()
816 }
817 return b[i].it < b[j].it
818}
819
820func (b itemsByType) Swap(i, j int) { b[i], b[j] = b[j], b[i] }

Callers

nothing calls this directly

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected