Do you get the correct order if you pull the keys out with Hash#keys()? Try 
console.log(myHash.keys().inspect()) and see if your keys are in the order you 
expect. Then you could make your own "each" by using the array elements 
(guaranteed order) as your accessor keys.

Walter

On Oct 4, 2011, at 12:38 PM, surge wrote:

> I have this nasty problem with hashes. IE 8 disregards the order of
> hash element declarations and when I do hash_name.each(), the result
> is "out of order" so to speak -- although I know that the order is not
> guaranteed. What's the best solution if I want to stay with hashes?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Prototype & script.aculo.us" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to