Re: Getting a list of files from a directory in a sorted order
Wednesday, June 6, 2001 08:53 AM
Sorting is a separate operation, and as such it
is (and should be!) distinct from any of the default
methods such as list(). There are literally
hundreds of ways to sort, and hundreds of keys to
sort on. The Java Collections
classes provide you will all the tools you will need to
sort the returned list of files in any way you feel appropriate.
In particular, check out java.util.Arrays
and the Collections FAQ.