JavaScript Arrays

The sort() Method

The sort() method sorts an array alphabetically: