Skip to content

Commit 16218b7

Browse files
authored
Merge pull request containerd#4628 from haytok/issue_4626
fix: sort results of `nerdctl ps` and `nerdctl compose ps` alphabetic…
2 parents 8a5888e + 3baeb0f commit 16218b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/formatter/formatter.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ func FormatPorts(ports []cni.PortMapping) string {
163163
)
164164
}
165165

166+
sort.Strings(displayPorts)
167+
166168
return strings.Join(displayPorts, ", ")
167169
}
168170

0 commit comments

Comments
 (0)