FIXED IT!!

All kinds of messing around, but most importantly I FIXED THE EXPORT TO
CSV SORTING ISSUE!!!!!