Hi all, this is probably really simple but…
I have an XSLT sort for records to show descending
<xsl:sort select="@id" order="descending"/>
The records in the database have now reached over 1000 and the sort has stopped at 999 records.
Here’s the full XSLT:
<xsl:variable name="comments" select="UCommentLibrary:GetCommentsForNode($currentPage/@id)//comment"/>
<h3>
Showing 100 of <xsl:value-of select="count($comments)"/> comment<xsl:if test="count($comments) > 1">s</xsl:if> in our <xsl:value-of select="$currentPage/@nodeName"/>
</h3>
<ol class="commentlist">
<xsl:for-each select="$comments">
<xsl:sort select="@id" order="descending"/>
<xsl:if test="position() <= 100">
<li class="comment" id="comment-{@id}">
<div class="comment-author">
<span class="fn n">
<xsl:value-of select="./name"/>
</span>
</div>
<div class="comment-meta">
Posted <xsl:value-of select="umbraco.library:LongDate(@created,'true',' at ')"/>
</div>
<p>
<xsl:value-of select="umbraco.library:ReplaceLineBreaks(./message)" disable-output-escaping="yes"/>
</p>
</li>
</xsl:if>
</xsl:for-each>
</ol>
Can anyone help please?
many thanks!
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/61925-xslt-sort-issue