Just to clarify, the spearmen were all in range to attack and were ordered to attack blue.
But the thing is it isnt an irregular formation, it are 2 units in formation that arent aligned, so the irregular formations rule doesnt really apply here. But your first post, Getlords makes it clear.
But in my defense, we did play it right because I got 3 S&S hits and killed off stand 1 after moving the chargers.

So in the end it was a legal move thanks to your shooting.
The other question is, would the 2 stands count as being flanked during this charge? (important especially for counting support) RAW, I think would suggest yes, because there is no accidental contact during a charge.