I have an array of arrays of the following kind
let finalData = [[1920000000, 273.15], [1620033000, 276.15], [1627700000, 272.15]]
The first value inside the data array is the timestamp. How do I sort the entire array from smallest to largest timestamp, with or without lodash
?
Expected result:
let finalData = [[1620033000, 276.15], [1627700000, 272.15], [1920000000, 273.15]]
Thank you in advance for your help