Assume there are two arrays
arr1[] arr2[]
1 0
2 5
2 0
2 10
4 9
4 9
5 0
i need to sort arr1[] in such a way the resultant array is
5 4(9) 4(9) 2(10) 2(5) 2(0) 1 // preference is given to number in arr1 if equal the arr2 is consulted
is there any way to do this using STL in C++ ??
plz help !
thank u !