You didn't tell but Windows comes with a sort program for sorting text files. But many forgot about it.

Open Office in it's spreadsheet and word processor has sorting.
Bob