Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • $\begingroup$ This is the best answer, I think (+1). But do you really need HoldFirst? $\endgroup$ Commented Aug 3, 2013 at 5:18
  • $\begingroup$ @Jens This changes the order of all the other terms, which in my understanding is not desired. I believe all but the last expression should agree with {x^2 + x + 5, -x^2 + x + 5, x^2 + x, -x^2 + x} // TraditionalForm. That is to say, it should match my answer. $\endgroup$ Commented Aug 3, 2013 at 5:19
  • $\begingroup$ @Mr.Wizard You're right. I thought Sort on blocked Plus is a clever idea, but it doesn't quite do what's needed either. $\endgroup$ Commented Aug 3, 2013 at 5:24
  • $\begingroup$ @Jens, Mr. Wizard good catches - guess I should have done more testing. $\endgroup$ Commented Aug 3, 2013 at 5:33
  • $\begingroup$ @Jens moreover, it fails with -x + 1. $\endgroup$ Commented May 23, 2014 at 9:52