Run ❯
Get your
own
website
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Arrays
The sort() Method
The sort() method sorts the elements of an array in alphabetical order.