First time here? Check out the FAQ!
answered 2020-06-19 20:40:25 -0600
The problem is in the code that you, for some reason, don't show: your function getOrderedPoints gets the points wrong.