http.server.static: sort files for static html directory listing. seems to be sorted on mac already, but not on linux. consider allowing a sort order parameter in the future.

locals-and-roots
Doug Coleman 2016-06-01 11:59:57 -07:00
parent 9da7863917
commit 0f217b9cf0
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ TUPLE: file-responder root hook special index-names allow-listings ;
[ file-name ]
[ drop f ]
[
[ file-name ] [ [ [ file>html ] map ] with-directory-files ] bi
[ file-name ] [ [ natural-sort [ file>html ] map ] with-directory-files ] bi
[XML <h1><-></h1> <ul><-></ul> XML]
] tri
simple-page ;