From: Gavin Sinclair Date: 2003-03-18T09:39:12+09:00 Subject: Re: Accessing hash values sorted by their keys On Tuesday, March 18, 2003, 10:59:34 AM, Daniel wrote: > So Hash#sort will sort by the keys and return a 2-dimmensional array. > So your snipet could be written as: > h.sort.each { |item| > puts item[0] > } Or, h.sort.each do |key, value| puts key end Gavin