Sorting By FileSystem.Object

Results 1 to 2 of 2

Thread: Sorting By FileSystem.Object

  1. #1
    Join Date
    Dec 1969

    Default Sorting By FileSystem.Object

    Hiya :)<BR><BR>I have a folder with 6 .html files.<BR><BR>I need to know if there is a way to sort the FileSystem.Object by Date (this will be the filename)<BR><BR>Eg. the files I have are 25_06_2000.html 02_06_2000.html 09_06_2000.html 16_06_2000.html etc<BR><BR>FileSystem sorts them by name. So they jump all over the place.<BR><BR>I would like to know if there is a way to sort them so they fall into date order (the files get updated at different times so last modified or datecreated wont work).<BR><BR>Thanks heaps for your time :))<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Sorting By FileSystem.Object

    There doesn&#039t seem to be an native means of sorting a Files collection - the only way I can think of would be to copy the Files collection into an array and then write an algorithm to sort the array.<BR><BR>Dunc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts