Add -t option.
Change SortFile from quick sort to merge sort, because stable sort is needed.