<div dir="ltr">On Fri, Mar 14, 2014 at 10:31 AM, Jason King <span dir="ltr"><<a href="mailto:pizza@netspace.net.au" target="_blank">pizza@netspace.net.au</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yup, associative arrays , (in awk), dicts in python , and the perl version of them are all like this, you can't specify the order in which the contents are output.<br>

<br>
There is an OrderedDict (<a href="http://docs.python.org/2/library/collections.html#collections.OrderedDict" target="_blank">http://docs.python.org/2/<u></u>library/collections.html#<u></u>collections.OrderedDict</a>)<br>

if insertion order is important to you.</blockquote><div><br></div><div>And, to add to Jason's Rosetta Stone of mappings, I believe Ruby hashes (which is the name dicts have in that faraway land) are always ordered, at least from 1.9 onwards.<br>
<br>J<br></div></div></div></div>