Re-ordering a numpy array with a given list of indexes, like the following:
arr = np.array([10, 20, 30, 40, 50]) idx = [1, 0, 3, 4, 2] arr[idx]