Project

General

Profile

Feature #613

client-selectable directory list sorting, patch included

Added by Anonymous over 11 years ago. Updated about 1 year ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_dirlisting
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:
No

Description

Hello

Could you please add the possibility to sort the default dir listing by date, not only by name ( ?M=A / ?M=D from apache) ?

best Regards

-- wolfy

mod_dirlist_sorting.patch (5.15 KB) mod_dirlist_sorting.patch patch for client-selectable directory list sorting mcosby, 2007-12-30 14:33
dirlisting-1.4.26.patch (5.05 KB) dirlisting-1.4.26.patch mcosby, 2010-04-05 06:59

Related issues

Related to Feature #2315: dir-listing.external-jsFixed2011-05-12

Associated revisions

Revision cfa3d27f (diff)
Added by gstrauss about 1 year ago

[mod_dirlisting] js column sort for dirlist table (fixes #613, fixes #2315)

copied javascript from mod_status and from lighttpd2 mod_dirlist

modified and specialized for stable dirlist sorting by name

Partial implementation of Apache autoindex request query arguments
(https://httpd.apache.org/docs/current/en/mod/mod_autoindex.html)
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)
?C=N&O=A ascending

(While functional, no effort was made on js performance.
Patches welcome)

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)

x-ref:
"client-selectable directory list sorting"
https://redmine.lighttpd.net/issues/613
"dir-listing.external-js"
https://redmine.lighttpd.net/issues/2315

History

#1 Updated by Anonymous almost 10 years ago

I second that!

-- nixin

#2 Updated by mcosby almost 10 years ago

I've created a patch against lighttpd 1.4.18 for this

#3 Updated by Anonymous almost 10 years ago

The patch seems to work perfectly. Thanks a lot !

Please consider including it as default for the future versions of lighty.

-- wolfy

#4 Updated by icy almost 9 years ago

  • Priority changed from High to Normal
  • Patch available set to No

#5 Updated by icy almost 9 years ago

  • Patch available changed from No to Yes

#6 Updated by mcosby over 7 years ago

Patch updated for 1.4.26

#7 Updated by stbuehler over 7 years ago

  • Assignee deleted (jan)
  • Missing in 1.5.x set to No

I'd prefer client side sorting via javascript; see our dirlist module for 2.0 (http://cgit.lighttpd.net/lighttpd/sandbox/plain/src/modules/mod_dirlist.c, demo here: http://download.lighttpd.net/lighttpd/).

#8 Updated by ghost_1987 almost 6 years ago

stbuehler wrote:

I'd prefer client side sorting via javascript; see our dirlist module for 2.0 (http://cgit.lighttpd.net/lighttpd/sandbox/plain/src/modules/mod_dirlist.c, demo here: http://download.lighttpd.net/lighttpd/).

this does not work on IE8 and older

please consider adding sorting feature as provided by the patch

#9 Updated by gstrauss over 1 year ago

FYI: IE 8 is no longer supported on mainstream OS, so a client-side sort in javascript is now a more reasonable solution.
https://support.microsoft.com/en-us/lifecycle/search?sort=PN&alpha=internet%20explorer
https://support.microsoft.com/en-us/lifecycle#gp/Microsoft-Internet-Explorer

#10 Updated by gstrauss over 1 year ago

#11 Updated by gstrauss about 1 year ago

  • Status changed from New to Patch Pending
  • Target version set to 1.4.42

#12 Updated by gstrauss about 1 year ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom