[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: AW: [xsl] Sorting Upper-Case first. Microsoft bug?


Subject: RE: AW: [xsl] Sorting Upper-Case first. Microsoft bug?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 5 Aug 2003 21:56:08 +0100

> Lexicographicly (is that a real word?), there is *NO* difference
> between 'CAT', 'Cat' and 'cat', 

"lexicographic sorting" does not mean pick some random dictionary that
is describing the meaning of the words and and use teh order there.
It is a technical term that describes how to extend an ordering on a
finite set to order finite sequences of those terms, ie how to order
strings given an ordered alphabet. the algorithm is that you order one
string less than the other by comparing the first character that is
different in the two strings.


Dictionaries may use other orderings as they have other constraints
like putting words with the same stem together and not listing
gratuitous capitalisations like CAT at all. But that isn't lexicographic
ordering.

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread