Hello all,

I am having a problem with the xsl:sort which do not give the result i expected. According to UTF-8, i would expect that numerical number come before '_'.
As you can see below this is not what i get.
Does anyone have an idea ?

Code:

        <xsl:for-each select="$fastAnalogInputs">
                <xsl:sort select="./@Name" data-type="text" />
#define <xsl:value-of select="./@Name"/>                (<xsl:value-of select="position()-1"/>u)<xsl:text/>
        </xsl:for-each>

Note: $fastAnalogInputs is a list of elements that have string in their @Name attribute.


Expected result:

#define ECU_SIGNAL_10_MUX_1_LN_0  (32u)
#define ECU_SIGNAL_11_MUX_1_LN_1  (33u)
#define ECU_SIGNAL_12_MUX_1_LN_2  (34u)
#define ECU_SIGNAL_13_MUX_1_LN_3  (35u)
#define ECU_SIGNAL_14_MUX_1_LN_4  (36u)
#define ECU_SIGNAL_15_MUX_1_LN_1  (37u)
#define ECU_SIGNAL_1_CH_1  (38u)
#define ECU_SIGNAL_1_MUX_0_LN_1  (39u)

Actual result:

#define ECU_SIGNAL_1_CH_1                (32u)
#define ECU_SIGNAL_1_MUX_0_LN_1                (33u)
#define ECU_SIGNAL_10_MUX_1_LN_0                (34u)
#define ECU_SIGNAL_11_MUX_1_LN_1                (35u)
#define ECU_SIGNAL_12_MUX_1_LN_2                (36u)
#define ECU_SIGNAL_13_MUX_1_LN_3                (37u)
#define ECU_SIGNAL_14_MUX_1_LN_4                (38u)
#define ECU_SIGNAL_15_MUX_1_LN_1                (39u)

Thank you in advance
Philippe