title: Sorting an array (Object[]) consisting of integers and strings - Java
body: <p>I have and array of type Object[], containing integers and strings (single letters).</p>
  
  <pre><code>Object[] myArray = {(String) "U", (String) "U", (int) 2, (String) "X", (int) 4, (String) "U"};
  </code></pre>
  
  <p>What my question is, is there a simple way to sort this array, firstly by ints before strings and secondly by ints in numerical ascending order and string in alphabetical order?
  I was looking for something similar to the Arrays.sort method, but i don't think it will be that simple.</p>
  
  <p>Thank you</p>