Back to the previous method: split the files and sort