{{ range (.Pages.ByParam.Reverse "year") }} not working

When I range over pages with {{ range (.Pages.ByParam "year") }} it outputs a correctly sorted list. When I try to sort in reverse with {{ range (.Pages.ByParam.Reverse "year") }} I get an error: .. <.Pages.ByParam.Rever...>: wrong number of args for ByParam: want 1 got 0
From the docs I reckon this should work? Or is there another way to sort this in reverse?

1 Like

I haven’t tried, but if .Reverse works on a slice/list, this should work: (.Pages.ByParam "year").Reverse.

1 Like

Cool that indeed works. Thanks!