human
Align numpy array according to another array
assistant
Here is some code to align values in array `b` to the order of corresponding values in array `a`

a[np.in1d(a, b)]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.