I have 2 arrays
Array 1 : $agents = Array('abc','xyz','pqr');
Array 2 : $tot_calls = Array ('10','5','20');
Here array 2 reflects total calls made by agents in $agents array respectively. i.e Agent abc made 10 calls , Agent xyz made 5 calls and so on.
I want the resultant array to display agents sorted(DESCENDING) by the number of calls they made
i.e $result = Array('pqr','abc','xyz');
// Here the resulting array is sorted on the max calls they made.