N2 has a bond order of three. O2 has a bond order of two. This means that N2 is (less or more) stable than O2 and N2 has a (longer or shorter) bond length than O2.