I'm trying to order a file with 577000 lines by year. I'm putting the information of which line in a doubly linked list. To order the file I tried to implement the merge sort algorithm , but because the algorithm is recursive when ordering a large quantity of information the algorithm doesn´t work because of the overflow of the stack memory. Can someone help try to find a more efficient algorithm that doesn´t crash and doesn´t take too long ?
From a comment:
The dates ranger from 1730 to 2013