Javascript Methods JavaScript Reference

Note:
Sorts the elements in the array alphabetically.
    
Syntax:
    
arrayName.sort()