In molecules of C2 and N2, the energies of the s2p and p2p orbitals are switched. Repulsive interactions between the s2s orbital and the s2p orbital cause the energy of the sp orbital to be raised above that of the p2p orbitals.