alphabetical order Folder listing

Results 1 to 2 of 2

Thread: alphabetical order Folder listing

  1. #1
    Join Date
    Dec 1969

    Default alphabetical order Folder listing

    I am listing the names of subfolders within a folder through a for loop however it doesn&#039;t write them in alphabetical order.<BR>Folder names are : Plan A, Plan B, Plan C, Plan D, and so on. However it writes them out on the page as :<BR>Plan G<BR>Plan A<BR>Plan K<BR>Plan C and so on<BR><BR>Example of my loop.<BR>For Each objSubFolder in objFolder.SubFolders<BR> response.write<BR>Next<BR><BR>Why is it doing this and is there a way to have it write them in alphabetical order?

  2. #2
    Join Date
    Dec 1969

    Default ASPFAQs, category File System Object

    The link to the ASPFAQs is at the top right corner of most every page on this site, including the one you are reading now.<BR><BR>There&#039;s an FAQ there about sorting files, but exactly the same code applies except for the FOR EACH line.<BR><BR>

Posting Permissions

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