I need to order an array composed by sub-arrays.
The array have to be ordered by the first element of each sub-array element
Example:
myArray = [ [1,0],[3,10],[2,5],[4,0] ]
desired output: [ [1,0],[2,5],[3,10],[4,0] ]
How can I achieve this in Javascript?
Thanks,Nk