MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Less

Method Less

initialization.go:98–106  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

96}
97
98func (ls AccessListSort) Less(i, j int) bool {
99 if ls[i].Group != ls[j].Group {
100 return ls[i].Group < ls[j].Group
101 }
102 if ls[i].Cname != ls[j].Cname {
103 return ls[i].Cname < ls[j].Cname
104 }
105 return ls[i].Name < ls[j].Name
106}
107
108func (ls AccessListSort) Swap(i, j int) {
109 ls[i], ls[j] = ls[j], ls[i]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected