Run ❯
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript Arrays
The sort() Method
Click the buttons to sort the array alphabetically or numerically.
Sort Alphabetically
Sort Numerically