A smart strategy for controlling disinfection byproducts by reversing the sequence of activated carbon adsorption and chlorine disinfection.