The toSorted() method of Array instances is the copying version of the sort() method. It returns a new array with the elements sorted in ascending order.