This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
sort and collating sequence
- From: "Paul Bell" <pbell at syncsort dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 25 Feb 2002 13:18:48 -0500
- Subject: [xsl] sort and collating sequence
- Organization: Syncsort Incorporated
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi All,
I recently scoured the xsl-list digest in search of information about how
the several xsl:sort implementations construe
the notion of a 'collating sequence'. My own observation is that xsl:sort
(msxml3 at least) does a kind of 'semantic sorting'.
For example, the values:
aaa
bbb
ccc
AAA
BBB
CCC
sorted order="ascending" data-type="text" are presented as:
aaa
AAA
bbb
BBB
ccc
CCC
I work at a company that knows a little about sorting and I find this
sequence odd. Shouldn't it be:
AAA
BBB
CCC
aaa
bbb
ccc
To put a fine point on it, isn't the ascending sequence in UTF-8:
x'414141'
x'424242'
x'434343'
x'616161'
x'626262'
x'636363'
??
This behavior seems so wrong to me, yet it is so unremarked in the digest
that I feel I must be missing something huge. Can anyone shed any light on
the correctness of this behavior? Is it unique to
msxml3? Can one use xsl:sort to produce what seems to me the proper
sequence?
Thank you.
-Paul
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list