sevdokimov / log-viewer

Web UI for viewing logs
Apache License 2.0
477 stars 105 forks source link

order dir list by last modified desc #158

Open mhewedy opened 1 year ago

mhewedy commented 1 year ago

current implementation order ascending by natural order... It is fine ... but the user might be interested in files that are more recent to be on top (last modified desc)

What do you think?

I can send PR once agreed upon!

sevdokimov commented 1 year ago

Agree, order my modification time is good in some cases. We need to add clickable column names or a dropdown with "name", "modification time", "size" options to specify sorting.

holograph commented 1 year ago

Clickable columns would be ideal, but since this is a log viewer, I think a default sort order of modified time (descending) makes sense in the interim...

P.S. I just integrated logviewer for a client, it's far better than any alternative I've found so far. Thank you!