Seems to me you could create a class implementing the "IComparer" interface,
put all your FileInfo's into an arraylist then call the
ArrayList.Sort(IComparer) method to get the work done cleanly.
Scott
>> i have been using the getfiles method, but that retrieves only
>> alphabetically. i'd like to be able to retrieve filenames in a directory
[quoted text clipped - 5 lines]
> You'll probably have to just get the FileInfo objects and sort the
> collection yourself. Shouldn't be too hard.
Daniel O'Connell [C# MVP] - 30 Sep 2005 22:06 GMT
> Seems to me you could create a class implementing the "IComparer"
> interface, put all your FileInfo's into an arraylist then call the
> ArrayList.Sort(IComparer) method to get the work done cleanly.
yeah, that is probably the best way to do it.