Sorting of 10000 data using File IO