That should be quite easy to achieve: Use the
Xsl Sort Tag[
^]!
<xsl:sort select="expression"
lang="language-code"
data-type="text|number|qname"
order="ascending|descending"
case-order="upper-first|lower-first"
/>
and let the select be something like this:
select = "count(node-expression-that selects-a-bunch-of-nodes)"
Regards,
Manfred