[xsl] Sorting behavior of Latin accented characters depends on what characters follow them ... XPath fails to sort correctly

Subject: [xsl] Sorting behavior of Latin accented characters depends on what characters follow them ... XPath fails to sort correctly
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Mon, 7 Jan 2013 10:25:08 +0000
Hi Folks,

The character 'A' sorts before the character 'C' so this XPath expression
returns true:

      'A'  lt  'C'

According to [1] the sorting behavior changes depending on what character
follows. Thus, the string 'Cb' sorts before the string 'Ah' and this XPath
expression should return true:

      'Cb'  lt  'Ah'

However, it returns false.

Why?

What XPath expression will return the correct result?

/Roger

[1] http://m10lmac.blogspot.com/2013/01/secrets-of-unicode-sorting.html

Current Thread