In a for-each expression:
<xsl:for-each select="myXpathExpression">
<xsl:sort select="myNode"/>
...
</xsl:for-each>
In a for-each expression:
<xsl:for-each select="myXpathExpression">
<xsl:sort select="myNode"/>
...
</xsl:for-each>