Alphabetize formulae