converts csv data to ascending sorted csv