Sorting a 2D float arrray by value of 2nd dimension
<pre><code> Arrays.sort(copied, new Comparator&lt;float[]&gt;(){
    @Override
    public int compare(float[] o1, float[] o2) {
        // TODO Auto-generated method stub
        return o2[7].compareTo(o1[7]);
    }
});
</code></pre>

<p>the copied array is use looks like this</p>

<p><code>[10.0, 34.34, 34.42, 34.1, 34.35, 5244700.0, 34.35, 0.0, 0.0, 0.0][10.0, 34.34, 34.42, 34.1, 34.35, 5244700.0, 34.35, 0.1, 0.0, 0.0 ].......</code></p>

<p>but somehow the compiler errors the return line : </p>

<pre><code>Cannot invoke compareTo(float) on the primitive type float
</code></pre>

<p>pls help</p>
