title: Sort all even numbers in ascending order and then sort all odd numbers in descending order in a collection
body: <p>This is an interview question. </p>
  
  <p>There are some random numbers given (let's say in an integer array). </p>
  
  <ol>
  <li>How can we sort all the even numbers in ascending order first and then sort all the odd numbers in descending order. </li>
  <li>which Collection suits best.</li>
  </ol>
  
  <h3>Input numbers:</h3>
  
  <pre><code>12 67 1 34 9 78 6 31
  </code></pre>
  
  <h3>Output saved in Collection:</h3>
  
  <pre><code>6 12 34 78 67 31 9 1 
  </code></pre>