A hetero[6]rotaxane bearing three different kinds of macrocycle is designed and successfully synthesized through a one-pot “click” reaction by employing a facile and efficient integrative self-sorting principle.