Sort multidimensional array in JavaScript
<p>I need to sort an array containing arrays in ascending numerical order. The data structure looks like this</p>

<pre><code>array = [[escalation],//integer
         [name],
         [email],
         [blackberry]];
</code></pre>

<p>I try to sort the array using this function (sorting by escalation)</p>

<pre><code>function sortfcn(a,b){
 if(a[0]&lt;b[0]){
    return -1;
 }
 else if(a[0]&gt;b[0]){
    return 1;
 }
 else{
    return 0;
 }
}
</code></pre>

<p>But my output still looks incorrect... </p>

<p>0
0
10
12
14
16
18
20
20
8</p>

<p>Any advice on how to fix this?</p>
