Okay, I figured out what was the problem.
glibc's LC_COLLATE file under /usr/lib/locale/tr_TR
is wrong! And it has been wrong for many years now. And
nobody noticed it. PostgreSQL is innocent here.

I checked it many times over and over again with 
test programs and different environment settings and
it is wrong! I will contact glibc team now.

Thanks a lot for help.

Regards,
Nicolai Tufar


Mon, 2 Feb 2004 23:28:21 +0200
"Nicolai Tufar" <ntufar@pisem.net>
Re: Q: How ORDER BY is being done inetrnally? - solved, in a way