I'm optimizing the sorted formulas.