Ascending x-coordinate:
(vl-sort <point-list> '(lambda ( a b ) (< (car a) (car b))))
Ascending y-coordinate:
(vl-sort <point-list> '(lambda ( a b ) (< (cadr a) (cadr b))))
Ascending x-coordinate, then y-coordinate:
(vl-sort <point-list> '(lambda ( a b ) (if (equal (car a) (car b) 1e-8) (< (cadr a) (cadr b)) (< (car a) (car b)))))
I use QGIS to save fairly high res georeferenced images then import using mapiinsert in C3D. If you don't have C3D you could use THIS very old code to insert in CAD.
Ah! Yes, of course - thanks for reminding me. The scripts that run those blocks are still pointing to the old database, so they will now be out of synch with the new forum. It's on my to-do list. Feel like I should get that tattooed on my forehead