Yep, a hash structure. I didn't even think to check whether Ruby hashes
were ordered (I just assumed they would be), which should have been the
first thing to check when I noticed that my results were unordered. Thanks
for the info!
On Thu, Mar 14, 2013 at 6:36 PM, Ellison Marks wrote:
> each_
each_pair, so that a hash structure, yes? Ruby hashes are unordered in 1.8.
Iterating like that isn't guaranteed to be the same every time. You can
iterate over the sorted keys, then get the params variable by lookup using
the key.
<%
cachebins.keys.sort.each do |bin|
params = cachebins[bin]