Browse - Default sorting

As far as I understood it from the template, by default the items are sorted by the arrangement in .Items ({{range .Items}}), and this can be changed with the url path.

How can I change the default sorting upon first visit? Preferably I’d like it sorted by time, ascending.

Here’s the documentation for the Go templates that Caddy uses: template package - text/template -

After a quick look, it doesn’t seem like ranges can be ordered by arbitrary attributes.

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