refactor: use SliceStable instead of Slice method

main
sundowndev 2021-03-22 10:16:25 +01:00
parent edb5de32c0
commit eba0839c6e
No known key found for this signature in database
GPG Key ID: 8916203E540C65A4
1 changed files with 1 additions and 1 deletions

View File

@ -51,6 +51,6 @@ func IsSameResource(rRs, lRs Resource) bool {
}
func Sort(res []Resource) []Resource {
sort.Slice(res, func(i, j int) bool { return res[i].TerraformId() < res[j].TerraformId() })
sort.SliceStable(res, func(i, j int) bool { return res[i].TerraformId() < res[j].TerraformId() })
return res
}