Question: sort an equation wrt a variable into polynomial form

I explain my problem with an example:

 

When I write

sort(3x^3+x^2+x+1);

the answer is

      3    2        
 3 x  + x  + x + 1

 But when I write

sort((x+1)(x+2))

answer is

x(x+2)+1

while I want this form:

   2          
 x  + 2 x + 1

Even when I type only

(x+1)(x+2)

into a blank page, again the answer is 

x(x+2)+1

not 

   2          
 x  + 2 x + 1

I think this defualt type

What Should I do?

Please Wait...