Guest-controlled self-sorting in assemblies driven by the hydrophobic effect