The problem with using ordinal (a.k.a. lexicographic, a.k.a. binary) type comparisons?

by Michael S. Kaplan, published on 2007/04/17 17:31 -04:00, original URI: http://blogs.msdn.com/b/michkap/archive/2007/04/17/2166496.aspx


The reason why these comparisons are popular is not because they make sense. The order, in fact, when based on code point value (as most implementations are), is an entirely arbitrary and non-intuitive side effect of the place in which characters are encoded in Unicode.

This is when you think about it a somewhat ridiculous kind of methodology to even pretend to use for sensible results.

But when one should not be using linguistically appropriate results, it becomes the only choice.

Well, the only choice available in Microsoft products, at least....

Surely there must be something that might have been or might be better though, right?

I'll give some of my random off-the-cuff thoughts on this topic tomorrow (and point out flaws in some of the ideas that have been suggested by others in this space!)....

 

This post brought to you by ? (U+003f, a.k.a. QUESTION MARK)


no comments

referenced by

2007/04/25 The nature of OrdinalIgnoreCase vs. intuitive expectations

2007/04/25 Building your own better Ordinal comparison

2007/04/24 Popping the stack on the problem with using ordinal type comparisons?

go to newer or older post, or back to index or month or day