Sort sorts the references by name to ensure a consistent order.
(refs []*plumbing.Reference)
| 8 | |
| 9 | // Sort sorts the references by name to ensure a consistent order. |
| 10 | func Sort(refs []*plumbing.Reference) { |
| 11 | sort.Slice(refs, func(i, j int) bool { |
| 12 | return refs[i].Name() < refs[j].Name() |
| 13 | }) |
| 14 | } |
no test coverage detected