The CN isotopic ratios in comets