adding in correct CSV sorting