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

Method sortKey

pkg/structs/process.go:51–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (p *Process) sortKey() string {
52 return fmt.Sprintf("%s-%s", p.Name, p.Id)
53}
54
55func (ps Processes) Less(i, j int) bool {
56 return ps[i].sortKey() < ps[j].sortKey()

Callers 1

LessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected