I have this API call, but I don't receive the data in my successCallback in the same order as I send it.
    for (var i = 0; i < data.length; i++) {
      $http.post('/api/bla/blabla', $.param(data[i]))
        .then(successCallback, errorCallback);
     }
    var successCallback = function (response) {
       /*
       receive data in random order.
       assume its being send / handled so fast, thats its random
       which gets done first.
       */
    };
Can I somehow wait for all data to be received, and then reorder it to the original ordering? or is there another solution.
 
     
     
    