toSorted() Method
toSorted() method sort an array without altering the original array.