Sort Array based on value in java : <p>Peace and blessing be upon you.</p>

<p>Say I have:</p>

<pre><code>int[] array = {1,3,5,2,9,7,0};
</code></pre>

<p>Simply wanna sort this as:</p>

<pre><code>{0,1,2,3,5,7,9};
</code></pre>
