Given two arrays A1[] and A2[], sort A1 in such a way that the relative order among the elements will be same as those
Sort an array according to the order defined by another array
Given two arrays A1[] and A2[], sort A1 in such a way that the relative order among the elements will be same as those