title: Java sorting arraylist using comparator starting from the second object
body: <p>So supposing I have an arraylist named arr and it contains integers</p>
  
  <pre><code>arr[0] = 7  
  arr[1] = 4  
  arr[2] = 1  
  arr[3] = 3
  </code></pre>
  
  <p>I want to sort them but excluding the first array which is arr[0] so I want the array to be like this</p>
  
  <pre><code>arr[0] = 7  
  arr[1] = 1  
  arr[2] = 3  
  arr[3] = 4
  </code></pre>
  
  <p>Any ideas how to do it? Could this be done by using a comparator?</p>