Make SortFiles into a virtual method.