Order points in line-shapes. FYI, this was *hard*.