Today I learned that there is a newish javascript array method toSorted() which is the "copying" or non-mutating version of sort().
Use toSorted () Instead of sort () for Immutability .sort () mutates the array in place, which can cause bugs with React state and props. Use .toSorted () to create a new sorted array without mutation ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results