Hi,

Is this what you want?

sage: P.<x1,x2,x3,x4>=PolynomialRing(QQ,order='lex')
sage: S=[x3*x4,x2*x3,x1*x4,x4,x3,x1*x2,x1,x2,1]
sage: S.sort()
sage: S
[1, x4, x3, x3*x4, x2, x2*x3, x1, x1*x4, x1*x2]

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to