Apache Reference: mod_autoindex, IndexOrderDefault

IndexOrderDefault

Order of Documents in Index Listings
Syntax: IndexIgnore type A
Example: IndexIgnore Ascending Name
Since: Apache 1.0

This directive is used in combination with the FancyIndexing index option. By default, fancy indexed directory listings are displayed in ascending order by file name. The IndexOrderDefault directive allows you to change this initial display order. It takes two arguments. The first argument, type, must be either ``Ascending'' or ``Descending'', indicating the direction of the sort. The second argument, keyword, must be one of the keywords ``Name'', ``Date'', ``Size'', or ``Description'' and identifies the primary key. The secondary key is always the ascending file name.