title: Java array sort (array1 (key), array2 (value))
body: <p>I'm trying to do what in C# into Java. In C#:</p>
  
  <pre><code>Array.sort(array1, array2);
  </code></pre>
  
  <p>Where array1 is key and array2 is value</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/85y6y2d3(v=vs.110).aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/85y6y2d3(v=vs.110).aspx</a></p>
  
  <p>Was wondering if Java has something like that as well built in or we have to do some sort of customization.</p>