title: Sort an array with two arguments
body: <p>I already know how to sort an ArrayList but I wanna know if this is possible to sort an Array with two arguments like: I have an array 5 same objects with a float and a String in it like that:</p>
  
  <pre><code>- object 1 : 0 "DD"
  - object 2 : 3 "FF"
  - object 3 : 1 "GG"
  - object 4 : 2 "AA"
  - object 5 : 1 "AA"
  </code></pre>
  
  <p>And I want sort them like that:</p>
  
  <pre><code>- object 1 : 0 "DD"
  - object 5 : 1 "AA"
  - object 3 : 1 "GG"
  - object 4 : 2 "AA"
  - object 2 : 3 "FF"
  </code></pre>
  
  <p>Is it possible to sort them with a comparator by multiplying the <code>Float.compare()</code> and the <code>String.compare()</code> ?
  or do you need to sort them first with the <code>Float.compare()</code> and then create sub-arrays to compare with the <code>String.compare()</code> ?</p>