factoriseStringFormula with ordering of the terms according to their order