That is why ionization energy for nitrogen is higher than that of oxygen. Oxygen has low ionisation energy (than that of nitrogen). It is due to an electron being added to an already half full orbital in oxygen, which results in electron electron repulsion, which will lower the ionisation energy.