Re-order an array by indexes with javascript

reorder an array according to given indexes javascript
array sort javascript
java program to swap the contents and indexes in an array
reorder array php
array splice
how to sort array of array in javascript
javascript sort array of objects by key
manual sort array javascript