R
RocketMan
If string.Compare("li", "l'") results to 1, I would assume
string.Compare("lio", "l'o") also results to 1, however it results to
-1.
It seems the single quote character is the only one causing this
behaviour, double quote and backquote characters compare as expected.
I've tried already specifying different CultureInfo's but without any
success.
The above behaviour causes sometimes problems with a binary search on
ordered data from an sql query.
Paul
string.Compare("lio", "l'o") also results to 1, however it results to
-1.
It seems the single quote character is the only one causing this
behaviour, double quote and backquote characters compare as expected.
I've tried already specifying different CultureInfo's but without any
success.
The above behaviour causes sometimes problems with a binary search on
ordered data from an sql query.
Paul