Course · Section 11: Working With Arrays · Lecture 172: Sorting Arrays
Implement `sortAsc(arr)` returning a new array sorted ascending, without mutating the input.
+ 1 hidden test run on Submit.
Copying then sorting with a numeric comparator returns a correctly ordered new array.
Run your code to see results.