Edit This Code:
See Result »
The sort() method sorts an array alphabetically.
Try it
Result: