Sort by Frequency



Hi, 

I've got a series of equations like
x:cos(w1)+cos(w2);
y:a1*x+a3*x^3;

Using trigreduce(y) leads to
terms of cos(w1), cos(w2), cos(2*w1+w2) ... and so on.
I'd like to sort these terms according to those cos() coefficients.
How to do ? :)

Regards,

Stefan