Closed boedlen closed 11 years ago
Hey Martin, as it happens there is a custom Twig method which can do this called sortby
.
https://github.com/kolber/stacey/blob/master/extensions/twig-extensions.inc.php#L150
The usage is
{% for child in sortby(page.children, 'author') %}
Is it possible to sort by a specific field in Stacey?
Something like
I cannot find any documentation about this function aside from a headline in the Wiki.