title: How to sort array with respective array ids or values?
body: <p>I have two arrays:</p>
  
  <pre><code> String [] ids= new String [5];
   String [] points= new String [5];
  
   String one="a,b,c,d,e";
   //or
   String one="nepal,japan,finland ,brazil,spain";
   String two="100,500,200,400,300";
   ids= one.split(",");
   points= two.split(",");
  </code></pre>
  
  <p>Now i want to sort <code>points</code> in descending order just like.</p>
  
  <pre><code>500,400,300,200,100 with respective ids b,d,e,c,a
  </code></pre>
  
  <p>how can i do that.</p>
  
  <p>But i try this point descending order which is ok, but how to ordered ids with respective id.</p>
  
  <pre><code> Arrays.sort(points, Collections.reverseOrder());
   Arrays.toString(points);
  </code></pre>
  
  <p>or </p>
  
  <pre><code>Arrays.sort(points);
  </code></pre>
  
  <p>if i do same as ids which is also descending. but which is not output.</p>
  
  <p><strong>Edited:</strong></p>
  
  <p>if i have replace </p>
  
  <p>a,b,c,d,e letter to contries name or time.</p>
  
  <pre><code>String one="a,b,c,d,e";
  //  or
  String countries = "nepal,japan,finland,brazil,spain";
  // or
  String time="0:10,1:25,4:00,2:10,0:55";
  </code></pre>