diff --git a/registry/template.go b/registry/template.go index 19e1d71c0fce9cbe948e83a4b7536825b437e980..8d00c1a125d613bd997c99935bf06e91ce4b1373 100644 --- a/registry/template.go +++ b/registry/template.go @@ -6,7 +6,6 @@ "html/template" "io/ioutil" "os" "path/filepath" - "sort" "strings" "time" @@ -106,16 +105,9 @@ if err != nil { return nil, err } - // Sort the map keys so they are consistent vars := tree.ToMap() - sorted := make([]string, 0, len(vars)) - for k := range vars { - sorted = append(sorted, k) - } - sort.Strings(sorted) - for _, k := range sorted { - v := vars[k] + for k, v := range vars { var p survey.Prompt switch t := v.(type) { case []string: