
This goes with https://github.com/SonarSource/SonarJS/pull/3873. `toSorted()` is a new, copying method for arrays that otherwise behaves the same as `sort()`.
This goes with https://github.com/SonarSource/SonarJS/pull/3873. `toSorted()` is a new, copying method for arrays that otherwise behaves the same as `sort()`.