reorder the data file