exports results to csv in reverse order