Skip to content

Commit

Permalink
Sort the configurations before returning
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczyns authored and astefanutti committed Nov 24, 2020
1 parent 064fdc2 commit 280b623
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/trait/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"fmt"
"reflect"
"regexp"
"sort"
"strings"

user "github.com/mitchellh/go-homedir"
Expand Down Expand Up @@ -77,7 +78,9 @@ func CollectConfigurationValues(configurationType string, configurable ...v1.Con
}
}

return result.List()
s := result.List()
sort.Strings(s)
return s
}

// CollectConfigurationPairs --
Expand Down

0 comments on commit 280b623

Please sign in to comment.