Question: sort an expression with order of a symbol

How can this expression sorted in order of the symbol "y"? I want the terms with y locate at the beginnig.

restart:

f:=x^2+x^y+1-z

x^2+x^y+1-z

(1)

 

Download sort.mw

Please Wait...