Electron configurations of transition metals:
SHRIVER and ATKINS, Inorganic Chemistry 4th ed (2006: note 4th ed and it has ten authors, so any mistakes at the fundamental level have probably been corrected). Fig 1.22 (p 20) shows that except for K and Ca the 4s AO is ALWAYS higher in energy than the 3d AOs BUT (p 22): “the determination of actual ground states by spectroscopy and calculation shows that is advantageous to occupy orbitals predicted to be HIGHER in energy (the 4 s orbitals). The explanation for this order is that the occupation of orbitals of higher energy can result in a reduction in the repulsion between electrons that would occur if the lower energy 3d were occupied.”
The Full Story of the Electron Configurations of the Transition Elements W. H. Eugen Schwarz J. Chem. Educ., 2010, 87 (4), pp 444–448
4s is always above 3d! F. L. Pilar, J. Chem. Ed. 1978, 55, 2.
https://en.wikipedia.org/wiki/Electron_configurations_of_the_elements_(data_page)