Well, list() will give you the array as you've shown. Add the elements of that
array to a List. Then, what I would do is create a Comparator that operates on
File objects. This comparator uses the date to determine if one object is less
than another. Then use Collections.sort(List, Comparator). That's it.