Header and Footer Templates

Using headerTemplate should not break sort. Using cellTemplate and footerTemplate should work when a cell formula is specified.

headerTemplates don't seem to work correctly in browsers with native support, and are really slow in Firefox.