The correct order of ionization energy for comparing carbon, nitrogen and oxygen atoms is
C < N > O
→ Generally as atomic radius decreases ionization energy increases.
Good
Now, we know that along a period from left to right atomic radius decreases.
Therefore,
IE, order should be
C < N < O
But, because N has half filled orbitals, it is taken as more stable configuration and it will not lose electron so easily.
That's why we have to apply more energy in case of nitrogen.
In a period, the ionization energy of VA elements is more than the elements of VIA because the half filled p3 configuration of VA elements is comparatively of higher stability. VIA group elements (p4) configuration by the loss of one electron. Ionization energy
N(1s2 2 s2 2 p1 xpy1 pz1) >0
1s2 2 s2 2 p2 xpy1 pz1
Thus P > S; As(947) > Se(941)
Therefore, it will be
C < N > O