apply the sort (or sort!, for in-place changes)
x = [ 2, 5, 1, 7, 23, 99, 14, 27 ] x.sort! # => [1, 2, 5, 7, 14, 23, 27, 99]