I am trying to organize point lists based on x coordinates then y coordinates and was running into some trouble.
An example probably shows this clearly (excuse my poor example i realized i sorted by y then x in my picture, too lazy to fix, hopefully the point is clear)
My mind goes to chopping the list if the x value changes from one value to the next and then organizing based on y values of the sublists and then splicing the list back together.