Hi.

This might be one of the those odd situations where there is no
answer, but I have a hash coming from PHP via JSONP to JS/Prototype.

In IE and FF, the ordering is maintained.

In Chrome the order is not maintained.

The key part is numeric and is NOT in order. The value is sorted alphabetically.

I suppose I could reverse the key/value pairing and work that way, but
as the dox say, order is not guaranteed.

Alternatively, as the data is going to be used for a <select> tag, can
I sort the <option>s by value?

Regards,

Richard


-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to