"Nicolai Tufar" <ntufar@pisem.net> writes:
> We are trying to fix another problem we have with Turkish locale.
> Order in which tuples are returned by SELECT .. ORDER BY .
> statement differs from the one returned by UNIX sort utility or
> what strcoll() function will suggest.
Text sorting depends on strcoll() and nothing but. See varstr_cmp().
regards, tom lane