myHash = { 1 => "One", 2 => "Two", 3 => "Three", 4 =>"Four", 5 => "Five" } p myHash p myHash.sort # Hash does not have a sort! method, to change the contents of the hash in place.