The Array.sort() method sorts the elements of an array.
The Array.reverse() method reverses the order.