title: Does $.when resolve array of deferreds in the same order as they were in the array?
body: <p>I have an array of an unknown number of deferreds that I'm trying to resolve with $.when. When all the deferreds have been resolved, will the '.then' function give me back the resolved deferreds in the same order as I entered then in the array? </p>
  
  <p>Pseudo code example:</p>
  
  <pre><code>var deferreds = [];
  for(0,1,2,...,x) { 
     var def = JsonRpc(...);
     deferreds.push(def);
  }
  $.when.apply($, deferreds).then(function () {
    console.log(arguments.length); //outputs a number &gt;= 0
    for(0,1,2,...,x) {
       console.log("Defered: ", arguments[0,1,2,...,x])
    }
  });
  </code></pre>
  
  <p>Will deferreds[0] be equal to arguments[0] and deferreds[x] be equal to arguments[x]?</p>
  
  <p>Thanks in advance for any and all replies!
  //Edvin</p>