Modified code of sorting data from csv file and added test case file for unit testing