Today I learned that there is a newish javascript array method toSorted() which is the "copying" or non-mutating version of sort().
JavaScript continues to evolve, with a nice batch of new features added in ECMAScript 14. Here's what's new for JavaScript ...