Use custom Comparator<File> to do case-insensitive file sorting