note: your example is missing an end square bracket ] at the end of the array definition.
You can use the Javascript Array sort() method combined with an inline function to do what you want, the method's documentation even includes an example of how to compare numbers.
To compare numbers instead of strings, the compare function can simply subtract b from a.
Comments
You can use the Javascript Array sort() method combined with an inline function to do what you want, the method's documentation even includes an example of how to compare numbers.
The following is based on your array: WARNING: The sort method modifies the array it is called on!
(fixed the end bracket)