Sort nodes by creation/last published date


given a specific node I can select its children which are of a specific type.

nodes = ${q(node).childen('[instanceof My.Page:MyPage]')}

How do I sort the result by the node’s creation / last published date?

hey @kurztipp,

right now there is no SortOperation in an released version yet. But we will introduce that Feature with the upcoming LTS version:

You could adapt that change within a custom SortOperation


thank you for the reply. @kdambekalns and @christianm mentioned in the github repository that this is really slow. Why? What are faster alternatives?

Yeah, it can be really slow. It depends on the amount of nodes you try to sort. If you need more performance you should use ElasticSearch: