diff --git a/nexus/tools.go b/nexus/tools.go index 6aae1b3e..16608473 100644 --- a/nexus/tools.go +++ b/nexus/tools.go @@ -3,6 +3,7 @@ package nexus import ( "fmt" "os" + "sort" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) @@ -13,6 +14,7 @@ func resourceDataStringSlice(d *schema.ResourceData, attribute string) []string for i := 0; i < n; i++ { data[i] = d.Get(fmt.Sprintf("%s.%d", attribute, i)).(string) } + sort.Strings(data) return data }