code: function sortArrayByIndex(array) {
  
    let ii = 0;
    let length = array.length;
  
    let output = [];
  
    for (; ii < length; ++ii) {
      output[array[ii].index] = array[ii];
      delete array[ii].index;
    };
  
    return (output);
  
  }
docs: Sort array back into
  correct call order
  @param  {Array} array
  @return {Array}