DirectoryBrowse element in web.config doesn't allow one to specify sort orderRSS

1 reply

Last post May 20, 2013 09:50 AM by terridonahue

  • DirectoryBrowse element in web.config doesn't allow one to specify sort order

    May 20, 2013 07:14 AM|ClipFlair|LINK

    It would be nice if one could specify sort order for directory listings, e.g. could say

     

    sort="date+, name-"

     

    which would sort ascending by file date and then descending by name

    omitting +/- would assume a default + (ascending sort order)

     

    Now it only sorts by name which is not useful if you want to check if something new has been added to a folder (e.g. I'm looking at Transform Manager queue's Finished and Failed folders and since items in there use GUIDs for names it's hard to spot the newer entries with by-name sorting, whereas with by-date sorting I'd find them easily)

    sorting browsing directory

  • Re: DirectoryBrowse element in web.config doesn't allow one to specify sort order

    May 20, 2013 09:50 AM|terridonahue|LINK

    You are right that you can't sort the data. You can include the last modified date which could be helpful in this scenario. Here is additional information related to the directoryBrowse configuration setting.

    sorting browsing directory

    Terri Donahue
    Microsoft MVP ASPNET/IIS

    Please 'Mark as Answer' if this post helps you.