Sorted the data sets