Sort an integer array
var nums = [2,4,3,1,2]
var sorted = nums.sort # returns a new sorted array.
nums.sort! # sort 'nums' in-place (at the variable level)
var nums = [2,4,3,1,2]
var sorted = nums.sort # returns a new sorted array.
nums.sort! # sort 'nums' in-place (at the variable level)