You could merge a single header data row with your data into a merged export table. That way you could keep the 2nd header row in a temporary table.
Import that row and your data into an export table then export them all. you could add a sort order field to your export table and make sure your header row is sorted to the top then export it in the sorted order.
I dont have anything handy at the moment to mock up such an idea.