The sorting functions are ???tags??? such oligonucleotide tags such that when the compounds are bathed over an array of complementary oligonucleotides linked to a solid supports, such as beads, chips, under suitable binding conditions, the oligonucleotides hybridize.