Compare two files using the default {@link File#compareTo(File)} method.
This comparator can be used to sort lists or arrays of files
by using the default file comparison.
Example of sorting a list of files using the
{@link #DEFAULT_COMPARATOR} singleton instance:
List<File> list = ...
Collections.sort(list, DefaultFileComparator.DEFAULT_COMPARATOR);
Example of doing a reverse sort of an array of files using the
{@link #DEFAULT_REVERSE} singleton instance:
File[] array = ...
Arrays.sort(array, DefaultFileComparator.DEFAULT_REVERSE);
|