Converted initialSort and getFileName to public for unit test