Sorting the data in the readCSV, now it is no more required to sort the
data before using the scripts