Export script modified for full automation using csvsort, new export