sorted sorts containers in place by canonical name and returns the (same) slice.
()
| 190 | |
| 191 | // sorted sorts containers in place by canonical name and returns the (same) slice. |
| 192 | func (containers Containers) sorted() Containers { |
| 193 | sort.Slice(containers, func(i, j int) bool { |
| 194 | return getCanonicalContainerName(containers[i]) < getCanonicalContainerName(containers[j]) |
| 195 | }) |
| 196 | return containers |
| 197 | } |
no test coverage detected