Re: wrong sort order

From: "Alejandro D(dot) Burne" <alejandro(dot)dburne(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: wrong sort order
Date: 2005-07-04 15:13:27
Message-ID: 8398dc6d050704081334a9b94c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)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,
> --

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2005-07-04 15:48:29 Re: wrong sort order
Previous Message Greg Stark 2005-07-04 15:06:39 Re: Transparent i18n?