From: "Sony S." Date: 2011-01-15T23:48:39+09:00 Subject: Re: impossible to sort a hash by key? Although an old topic, this example could be useful to someone: h = ENV.to_hash h.keys.sort.each{|k| puts k + " => " + h[k] + "
\n"} -- Posted via http://www.ruby-forum.com/.