scope of javascript array differs from IE9 to FireFox/Chrome
<p>I've narrowed down my fundamental problem: the scope of an array differs from IE9 to FireFox (and Chrome).</p>

<p>In the following function (excerpt only), I declare an array, then fill it with a call to $.getJSON(). Because the line referencing HoldEm occurs within the ProcessArray function (and even within the boolSortArray branch), I have presumed that sortedWorking would be available at that point. It is in IE9 but not in FireFox/Chrome. In the line quoted, sortedWorking is empty in FireFox/Chrome. No errors are issued in any browser.</p>

<p>Experiments show that sortedWorking is populated just before the line noted as "end of $.getJSON," while just after that line it is empty. Any thoughts?</p>

<pre><code>function ProcessArray(arWorking, boolSortArray, idX, isPartners, isChildren) {
//...
var sortedWorking = [];
if(boolSortArray) {
  $.getJSON('MurakiMaida.json', function(data) {
    $.each(data.person, function(i, xdata) {
    ...
    sortedWorking.push(targetID + ":" + birthYear);
    ...
    }); //end of $.each
  });   //end of $.getJSON

  var HoldEm = BubbleSort(sortedWorking);
</code></pre>
