Textbooks sometimes write the 4s before the 3d. The meaning is the same. Exceptions beyond the common ones can differ between sources.
Frequently asked questions
How is the order of filling decided?
By the Madelung rule: subshells fill in the order 1s, 2s, 2p, 3s, 3p, 4s, 3d, and so on, each holding up to 2, 6, 10 or 14 electrons for s, p, d and f.
Why are chromium and copper different?
A half-filled or completely filled d subshell is slightly more stable, so one electron moves from 4s to 3d. Several other elements have such exceptions.
Are the heaviest elements reliable?
Beyond about element 103, configurations are predicted rather than measured, so treat them as the expected result.