This code selects the nodes, I want to work on…:
<xsl:variable name="rootTextpageNode"
select="$currentPage/ancestor-or-self::node [@level = 2 and
@nodeTypeAlias = 'CWS_Textpage']" />
How can I put a sort/orderby in there, so items with newer createdDate are displayed first?
I’m using the CWS starter kit, and need to change the order of items displayed in SubNavi.xslt
You can do a sort in the first line after a for-each, like so: