The select attribute provides the key to sort by
select
Must be a child of xsl:apply-templates or xsl:for-each
xsl:apply-templates
xsl:for-each
<xsl:apply-templates select="composer"> <xsl:sort select="name/last_name"/> </xsl:apply-templates>