refactor: use SliceStable instead of Slice method
parent
edb5de32c0
commit
eba0839c6e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue