title: Sorting numbers for highscores in java
body: <p>Ive got a highscore system for my game. and i want to be able to sort the numbers in acending order,ive got a way to sort the numbers</p>
  
  <pre><code>   public static int[] sort(int[] a){
      Arrays.sort(a);
      return a;
  }
  </code></pre>
  
  <p>but how do i make it so the scores stay with the name of the player that set it?
  for example 
   me:10
   you:50</p>
  
  <p>You should be number 1 and me should be nubmer 2. how to i make it so that the string stays with the int when its sorted? thanks </p>