Loading topic
Array.prototype.sort orders elements when you give it no arguments, how comparator functions change that order, and how to sort without changing the original array.1 min read(a, b) => a - b, and that you know sort() changes the original array while toSorted() returns a new one.1 min read