separate file with sorting algorithm