MCPcopy Create free account
hub / github.com/pquerna/ffjson / Less

Method Less

inception/inception.go:96–96  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

94
95func (p sortedStructs) Len() int { return len(p) }
96func (p sortedStructs) Less(i, j int) bool { return p[i].Name < p[j].Name }
97func (p sortedStructs) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
98func (p sortedStructs) Sort() { sort.Sort(p) }
99

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected