Sort Point Data by X Coordinate Then Y Coordinate

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)


Currently I can organize my data by x, but it fails to organize by y afterwards as I had anticipated.
Is there an easy way to do this?

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.

Any easier ways come to mind?

Thanks!

@austin.guter have you searched this forum ?

Could you sort by X, apply a list chop to the length of the row count, then apply a List Map/Sort to the X sub-lists by Y?

2 Likes