I am plotting HighChart Graph .I have data in 2DArray .It contains data as x and y coordinates as
[0.1.1 , 4.8]
[0.2.1 , 5.71]
[1.1.4 , 5.79]
[0.4.3.0 , null]
First column data has to be with 2 decibels ..I cant change 0.1.1 to 0.1
I dont have column Name in Array .I want to sort this array By first Column
I have tried in JSBin
http://jsbin.com/uwIXasa/40/edit
this is not working too I have tried this :
TestArray.sort(function (a, b) {
var a1 = a[1], b1 = b[1];
if (a1 == b1) return 0;
return a1 > b1 ? 1 : -1;
});
this is not sorting
I have read similar post ..but many are suggested to solve by column Name
.Please Suggest