MCPcopy
hub / github.com/urfave/cli / Less

Method Less

flag.go:75–77  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

73}
74
75func (f FlagsByName) Less(i, j int) bool {
76 return lexicographicLess(f[i].Names()[0], f[j].Names()[0])
77}
78
79func (f FlagsByName) Swap(i, j int) {
80 f[i], f[j] = f[j], f[i]

Callers

nothing calls this directly

Calls 2

lexicographicLessFunction · 0.85
NamesMethod · 0.65

Tested by

no test coverage detected