From: "David A. Black" Date: 2009-06-19T22:10:28+09:00 Subject: Re: need a hash/iteration tutorial...text reading. Hi -- On Fri, 19 Jun 2009, Steven Demonnin wrote: > Since arrays are key/value (from what I can understand), there are only > two part to the array. I thought you couldn't put a third value in an > array. It's more that you sort the hash into an array of two-element arrays, and then sort that array. Iterating through an array of two-element arrays is similar to iterating through a hash, in the sense that each iteration yields two values. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Now available: The Well-Grounded Rubyist (http://manning.com/black2) "Ruby 1.9: What You Need To Know" Envycasts with David A. Black http://www.envycasts.com