Step 1: Mg [Ne]3s2 (filled), Al [Ne]3s2 3p1 (single p e-, easier removal). Al<Mg.
Step 2: P [Ne]3s2 3p3 (half-filled, stable), S [Ne]3s2 3p4 (paired e-, easier removal). S<P.
Step 3: Combined: Al(578)<Mg(738)<S(1000)<P(1012).
\[\boxed{\text{Al} < \text{Mg} < \text{S} < \text{P}}\]