I am working on a program a algorithm that needs to start at the bottom left most point in a data set. This includes lowest x and y value.
let points = [ [ 16, 24 ], [ 15, 23 ], [ 15, 24 ], [ 20, 30 ] ] points = points.sort((a, b) => a < b).sort((a,b) => a < b) console.log(points)
I tried implementing the sort method, but nothing seems to happen when I run it. [15,23] should come before all other points.