From: | Michael Glaesemann <grzm(at)seespotcode(dot)net> |
---|---|
To: | "kdealba(at)uaaan(dot)mx" <kdealba(at)uaaan(dot)mx> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Ordering in SELECT statement |
Date: | 2007-06-26 20:14:21 |
Message-ID: | 227DC931-2807-46E4-93BD-077C0A2BF630@seespotcode.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Jun 26, 2007, at 14:41 , kdealba(at)uaaan(dot)mx wrote:
> and what I need is the following ("old fashion", that is, the
> "SPACE" is another character whose ASCII value is before any other
> LATIN letter's!!)
> AB CD
> AB EF
> ABAB
> ABD E
Sorting is defined by the locale settings of your computer. I get the
order you're looking for, and the my computer has LC_COLLATE="C".
$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL="C"
# select * from sorts order by sort;
sort
-------
AB CD
AB EF
ABAB
ABD E
(4 rows)
I haven't had any experience setting the locale on my computer, but
that might be something you want to look into.
Michael Glaesemann
grzm seespotcode net
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Glaesemann | 2007-06-26 20:23:33 | Re: upgrade 8.1.4 -> latest, sort order subquery |
Previous Message | Richard Huxton | 2007-06-26 20:12:02 | Re: Ordering in SELECT statement |