We determine howa system composed of two nonidentical two-level atoms with different resonance frequencies
and different damping rates could work as a nanoantenna for controlled mode switching and light routing. We
calculate the angular distribution of the emitted field detected in a far-field zone of the system including the direct
interatomic interactions and arbitrary linear dimensions of the system. The calculation is carried out in terms of
the symmetric and antisymmetric modes of the two-atom system.We find that as long as the atoms are identical,