From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Kristian Jörg <krjg(at)devo(dot)se>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Sort order with spaces? |
Date: | 2003-09-17 10:44:02 |
Message-ID: | 200309171144.02871.dev@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Wednesday 17 September 2003 10:47, Kristian Jörg wrote:
> Hello!
>
> I am having troubles with sort order in Postgres. It seems that space is
> not handled at all?
> For instance the following rows are sorted in MS SQL Server as:
>
> LUNDGREN
> M L R
> MACDOWELL
> MUSCLE
>
> But in Postgres I get this order:
>
> LUNDGREN
> MACDOWELL
> M L R
> MUSCLE
Sort order depends upon your locale settings (specifically LC_COLLATE), which
will have been set when you ran "initdb". Basically, sort orders for C ,
en_GB and fr will all be different. I'm guessing you expect "C" style
sorting.
Check the end of your postgresql.conf file to see what settings you currently
have.
See the manuals (Localization section) and list archives for plenty of
details.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2003-09-17 11:20:54 | Trigger order problems |
Previous Message | Martin Kuria | 2003-09-17 09:57:26 | Re: sub query |