I have so far failed to find any documentation on the twig functions and filters that appear to be custom in Grav. More specifically order() which I have found among the twig recipes, but can't successfully modify to order by anything else but date.
I am seeking to order listed post by some custom page header. Ideally.
Thanks.
Archive
Hi Daniel, order is not a Twig filter but a method of the class.
What page.find('/blog').children.order('date', 'desc').slice(0, 5) does is:
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1322 | 9 years ago | ||
| 2 | 917 | 9 years ago | ||
| 2 | 4048 | 9 years ago | ||
| 1 | 2922 | 9 years ago | ||
| 3 | 1106 | 9 years ago |