Coefficients reordering

I'm just surprised it evaluates the JS inside the template. Guess that works.