Ensuring columns saved to file in correct order