func SortedFields(fields environschema.Fields) []NamedAttr {
	fs := make(namedAttrSlice, 0, len(fields))
	for k, v := range fields {
		fs = append(fs, NamedAttr{
			Name: k,
			Attr: v,
		})
	}
	sort.Sort(fs)
	return fs
}
// SortedFields returns the given fields sorted first by group name.
// Those in the same group are sorted so that secret fields come after
// non-secret ones, finally the fields are sorted by name.
SortedFields returns the given fields sorted first by group name.
Those in the same group are sorted so that secret fields come after
non-secret ones, finally the fields are sorted by name.
// SortedFields returns the given fields sorted first by group name . // Those in the same group are sorted so that secret fields come after // non - secret ones finally the fields are sorted by name .
func SortedFields(fields environschema.Fields) []NamedAttr {
	fs := make(namedAttrSlice, 0, len(fields))
	for k, v := range fields {
		fs = append(fs, NamedAttr{
			Name: k,
			Attr: v,
		})
	}
	sort.Sort(fs)
	return fs
}
func SortedFields ( fields environschema . Fields ) [ ] NamedAttr { fs := make ( namedAttrSlice , 0 , len ( fields ) ) for k , v := range fields { fs = append ( fs , NamedAttr { Name : k , Attr : v , } ) } sort . Sort ( fs ) return fs }
SortedFields returns the given fields sorted first by group name.
SortedFields returns the given fields sorted first by group name .