Customizing tree listing

Is there an option for customizing the order in the tree macro? I’m looking for a way to display only a top 5 sorted by date.
The following is already 2 years old and I’m wondering if there’s developed a way to tackle this…
https://forum.xwiki.org/t/sort-document-tree-pages-by-creation-date/3582

Thanks in advance,

Richard

Is there an option for customizing the order in the tree macro?

Yes, see showDocumentTitle at https://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro

See also https://jira.xwiki.org/browse/XWIKI-15975

Thanks