"Yury Don" <yura@vpcit.ru> writes:
> Looks like string comparison operators ignore spaces isnside of string.
It's not wrong, it's just following the rules of the locale. You should
initdb the database with LANG=C if you want plain ASCII sorting.
regards, tom lane