This patch is append to release 1.4.28
modified and specialized for stable dirlist sorting by name
Partial implementation of Apache autoindex request query arguments
If query string is supplied, allow specifying initial column to sort
?C=N name (default)
?C=M last-modified, then by name
?C=S size, then by name
?C=T type, then by name
?C=D type, then by name
and O=[AD] can be added for descending or ascending order, e.g.
?C=N&O=D descending (default)
(While functional, no effort was made on js performance.
New directive dir-listing.external-js for user to replace sorting js
Note: dir-listing.external-js or default js sorting is enabled only
if dir-listing.auto-layout = "enable" (which is the default)
Updated by gstrauss over 1 year ago
- Status changed from Patch Pending to Need Feedback
A directive dir-listing.head-insert would be more generic. It would be similar to IndexHeadInsert from Apache 2.4 which inserts an configured string into head section.
I realize that your patch modeled off of dir-listing.external-css. The reason dir-listing.external-css can not be fold into a more generic dir-listing.head-insert is that if dir-listing.external-css is not specified, then mod_dirlisting provides a default CSS.
Note: this would only be enabled if dir-listing.auto-layout = "enable" (which is the default)
(and when updating this patch, please also read the previous feedback instructing not to renumber the options)
Also available in: Atom