javascript find value from array based on associative array key value
<p>I have an associative array:</p>

<pre><code>var array1 = {
    a1: {
        id: "box1",
        title: "box 1"
    },
    a2: {
        id: "box2",
        title: "box 2"
    },
    a3: {
        id: "box3",
        title: "box 3"
    }
};
</code></pre>

<p>I then have another array which has references to the first array:</p>

<pre><code>var array_order = ["a3:positionA", "a2:postitionB", "a1:positionC"];
</code></pre>

<p>I want to loop through the first list and then use the second list to find the position text</p>

<p>I am using jQuery so I have</p>

<pre><code>$.each(array1, function(i,o) {
  something in here where I can use i to find out what position. e.g. if a1 I would get positionC
}
</code></pre>
