Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

12. Directory Listings > 12.5. Sorting the List

12.5. Sorting the List

Problem

You want to sort the directory listing by something other than the defaults.

Solution

IndexOrderDefault Descending Date

Discussion

The IndexOrderDefault directive allows you to specify, in your configuration file or .htaccess file, the order in which the directory listing will be displayed, by default. If, for example, you wish to have files displayed with the most recent one first, you could use the directive shown in the Solution above.

The possible arguments to IndexOrderDefault are:

  • Name—the file or directory name

  • Date—the date and time that the file was most recently modified

  • Size—the size of the file, in bytes


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint