"Peter Cai" <newptcai@gmail.com> writes:
> The only difference is that one OS is centos and the other is ubuntu
It's hardly impossible that those two contain different locale
definitions. Have you tried comparing the results of sort(1)
under the same locale settings?
regards, tom lane