I’ve gotten my items to be organized by the custom year field, but I was wondering if I could reverse their order? They are currently organized in an ascending manner, and i would like it to be descending.
I tried
num: ‘{{ page.year, ‘desc’ }}’
And it didn’t work. I don’t see any syntax suggested for this in the documentation, any ideas for this?
I see, I thought that since the method outputs an integer it would be possible to pass a second parameter to change the order. I’ll try adding another method that outputs the right one.
I modified the pages section docs to reflect this. It’s mentioned here $pages->sortBy() | Kirby CMS, and the methods usually work in more or less the same way in the panel, but that’s certainly not obvious, especially not for people new to Kirby.