The electronic configuration of scandium is Sc: 1s2 2s2 2p6 3s2 3p6 4s2 3d1 .
So for scandium the 1st and 2nd electron must be in 1s orbital, the 3rd and 4th in the 2s, the 5th through 10th in the 2p orbitals, etc. In Scandium, the 4s has lower energy and appears before 3d