Re: wrong sort order - Mailing list pgsql-general

From Alejandro D. Burne
Subject Re: wrong sort order
Date
Msg-id 8398dc6d050704081334a9b94c@mail.gmail.com
Whole thread Raw
In response to Re: wrong sort order  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: wrong sort order
List pgsql-general
Martjin, this little example show your answer:
$ LANG=es_AR
$ export LANG
$ touch 'villa'
$ touch 'villa f'
$ touch 'villaa'
$ touch 'villat'
$ ls | sort
villa
villaa
villa f
villat

May be this is an off topic, but the question now is how to change or
find a locale that include spaces in sort order.
Thanks!!!, Alejandro.

2005/7/2, Martijn van Oosterhout <kleptog@svana.org>:
> On Sat, Jul 02, 2005 at 11:28:12AM -0300, Alejandro D. Burne wrote:
> > Hi, maybe there is a problem with sorting latin10? Seems to be like
> > spaces don't exists just sorting.
>
> It's not the encoding, it's the locale. For example, the en_US sorts in
> dictionary order (ignore spaces and case).
>
> Hope this helps,
> --

pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: Transparent i18n?
Next
From: Alvaro Herrera
Date:
Subject: Re: wrong sort order