Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (6 sloc) 185 Bytes

You can use the method sort to easily sort the values in the array alphabetically or numerically

var array = [1,3,2];

array = array.sort();

This will return [1, 2, 3]

Something went wrong with that request. Please try again.