index.js
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);

}
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);

}
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 ) ; }
Sort array back into
correct call order
@param  {Array} array
@return {Array}
Sort array back into correct call order