I am recursively listing out all the sub pages from a path using data-sly-list=currentPage.listChildren. But its returning the list as per node structure, is there anyway we can pass some parameters to get a sorted list based on title or published date.
Using the Use script, there's no such method/parameter available to return sorted data. if you wish to get sorted list based on specific parameter/condition, in that case, write logic in Java. Write either in Sling model or service and utilise accordingly.
I have tried to do the same using currentPage.listChildren but i don't see any methods which will give a sorted list based on some attributes(replication date, title) just like Filters(which will return specific pages).