Dynamic libraries of [n × n] imine components spontaneously simplify during a slow oxidation reaction to produce only n discrete products. The selectivity of this self-sorting process is a consequence of different oxidation rates for various imines, while the dynamic nature of the library enables self-sorting to proceed with high efficiency.