title: PHP - Sort Two Arrays The Same Way
body: <p>I have two different arrays. One array, a, for a list of people. My other array, b, for a list of their ages. I go to sort b by number and then reverse it so it goes in descending order. I got to this part okay.</p>
  
  <p>How do I sort a (a list of people's names) so that the same values are still paired up with the sorted list?</p>
  
  <p>Example:</p>
  
  <p>a contains Bob, Sue, Phil, and Jenny respectively</p>
  
  <p>b contains 15, 12, 13, and 13 respectively.</p>
  
  <p>I want my outcome to be:</p>
  
  <p>a contains Bob, Jenny, Phil, and Sue respectively</p>
  
  <p>b contains 15, 13, 13, and 12 respectively</p>