How to straighten out multiple selected edges to one axis?
I missed the last vertex but anyway.

Just select all the vertices and then hit S to scale then tap the direction you want to scale. In my case Y. Then tap  0 on the number pad.