I am teaching my students how to write the electronic configuration of the elements of the periodic table.
For example, following the rules on how to fill the orbitals, the electronic configuration of iron is
$$\ce{Fe}:~\mathrm{(1s)^2(2s)^2(2p)^6(3s)^2(3p)^6(4s)^2(3d)^6}.$$
Thus, its abbreviated form is
$$\ce{Fe}:~[\ce{Ar}]~\mathrm{(4s)^2(3d)^6}.$$
However, I has not been easy to find the explanation on why in any periodic table it is written as
$$[\ce{Ar}]~\mathrm{(3d)^6(4s)^2}$$
instead of
$$[\ce{Ar}]~\mathrm{(4s)^2(3d)^6}.$$
Same case for many other elements. Why is that?