Consider the sum


I want to order this sum in such the I have the powers in ascending order


And I want the procedure to be completely general, so that i works on any polynomial of any finite order in x. I have tried Expand (I have another series, not the simple example above) and it doesn't order my series the way I want.

  • 9
    $\begingroup$ don't you get that by default: expr = x^1 + x^3 + x^2 + x^4; expr? $\endgroup$
    – kglr
    Jul 25, 2018 at 15:14

1 Answer 1


One way is to define function

inverseorder[expr_] := HoldForm[expr /. Plus -> CirclePlus // Evaluate] /. CirclePlus -> Plus

Not the answer you're looking for? Browse other questions tagged or ask your own question.