We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 793063e + 3e8c0e0 commit 1846070Copy full SHA for 1846070
cmd/podman/system/connection/list.go
@@ -3,6 +3,7 @@ package connection
3
import (
4
"fmt"
5
"os"
6
+ "sort"
7
8
"github.com/containers/common/pkg/completion"
9
"github.com/containers/common/pkg/config"
@@ -77,6 +78,10 @@ func list(cmd *cobra.Command, _ []string) error {
77
78
rows = append(rows, r)
79
}
80
81
+ sort.Slice(rows, func(i, j int) bool {
82
+ return rows[i].Name < rows[j].Name
83
+ })
84
+
85
format := "{{.Name}}\t{{.Identity}}\t{{.URI}}\n"
86
switch {
87
case report.IsJSON(cmd.Flag("format").Value.String()):
0 commit comments