private void sortFiles(File[] files) {
		if (directoryComparator != null) {
			try {
				Arrays.sort(files, directoryComparator);
			} catch (ClassCastException cce) {
				cce.printStackTrace();
			}
		} else {
			Arrays.sort(files);
		}
	}