a = ['12', '24', '44', '32', '55'] a.sort! # a is now sorted a.sort # returns a sorted array, but does not modify a itself. Typical use: b = a.sort