Skip to content

Challenge Sort Arrays with sort

SaintPeter edited this page · 1 revision
Clone this wiki locally

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.