Submitted by swarut on Wed, 06/13/2012 - 17:15 a = { "a"=>"a", "c"=>"c", "b"=>"b"} sorted_hash = Hash[a.sort]