I want to sort a numpy vector according to another numpy vector with indices.
import numpy as np
my_vector = np.array([9. 6. 21. 17. 12.])
my_indices = np.array([1. 4. 2. 0. 3.])
what_i_want = np.array([17. 9. 21. 12. 6.])
Is there a function for this? Something like reverse argsort