gsort INDEX

GSORT _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

gsort(<p>)

where <p> is a polynomial or a list of polynomials.

The polynomials are reordered and sorted corresponding to the current term order.

examples:



  torder lex;
  
  gsort(x**2+2x*y+y**2,{y,x}); 

  y**2+2y*x+x**2