Natural sort for file_server

1. The problem I’m having:

Hi, is it possible to enable natural sorting in the file_server template for file listings?

Files with version numbers are currently not showing in ‘correct’ order with 6.10 coming before 6.6, 6.7 and so on.

2. Error messages and/or full log output:

No errors.

3. Caddy version:

v2.8.1 => /usr/src/caddy/git/caddy@(devel)

4. Other info.

Im currently using a slightly custom template where the js, css and html are split on three files.

The issue with sorting is still present when using the default built-in template.

I don’t think we have anything for that right now. Could you open an issue on Github to help us track this feature request?

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.