Arrange #'s from least to greatest

How would I create a script to take an array of #'s and put them into order from least to greatest?