The invention describes a method for isolating one or more genetic
elements encoding a gene product having a desired activity, comprising of
the steps of: (a) compartmentalising genetic elements into microcapsules;
(b) expressing the genetic elements to produce their respective gene
products within the microcapsules; (c) sorting the genetic elements which
produce the gene product having a desired activity.