Added reverse functionality

The reverse flag in export_to_xlsx() now allows rows to be written in
reverse order (the original header row is preserved).  This is important
for charts with time-series to display in the correct order.