I am working with a JavaScript code where I have an array like below:
Array:
[
["2015-08-09", 1.2, 1.20, 2.1],
["2015-08-10", 1.2, 1.21, 2.11],
["2015-08-11", 1.2, 0.99, 2.20],
["2015-10-29", 1.2, 1.12, 2.22],
["2015-09-10", 1.21, 1.19, 2.00]
]
My required Result is:
[
["2015-08-09", 1.20, 1.20, 2.10],
["2015-08-10", 1.20, 1.21, 2.11],
["2015-08-11", 1.20, 0.99, 2.20],
["2015-10-29", 1.20, 1.12, 2.22],
["2015-09-10", 1.21, 1.19, 2.00]
]
As the array is 3 dimensional I want to sort on column 1 and 2, so first apply ascending on column 1 and then column 2 (Ascending/descending).