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.
1 parent 0ad5104 commit a9110d3Copy full SHA for a9110d3
formatters/environments.go
@@ -2,6 +2,7 @@ package formatters
2
3
import (
4
"fmt"
5
+ "sort"
6
)
7
8
type Environment struct {
@@ -52,6 +53,9 @@ func FormatEnv(env Environment) string {
52
53
}
54
func FormatEnvs(envRes EnvResponse, grouped bool) string {
55
output := make(map[string]string)
56
+ sort.Slice(envRes.Values, func(i, j int) bool {
57
+ return envRes.Values[i].Name < envRes.Values[j].Name
58
+ })
59
for i := 0; i < len(envRes.Values); i++ {
60
env := envRes.Values[i]
61
0 commit comments