 With nitrogen, we see the two molecular orbitals mixing and the energy repulsion.This is the reasoning for the rearrangement from a more familiar diagram.Notice how the σ from the 2p behaves more non-bonding like due to mixing, same with the 2s σ.