sort_axis, index_array, Sort an index array and rearrange other arrays into the same order.