takes .csv data and orders the data