Re: order by different on mac vs linux

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Wes James <comptekki(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: order by different on mac vs linux
Date: 2012-05-31 19:52:39
Message-ID: 1338493959.22408.27.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On lör, 2012-05-26 at 21:47 -0600, Wes James wrote:
> on the ascii table here:
>
> http://www.ascii-code.com/
>
> upper case letters should sort before lowercase letters.

ASCII has nothing to do with how letters "should" be sorted. It is not
a sorting standard, it is a character encoding standard. If you open a
dictionary, you won't (usually) find all upper case letters before all
lower case letters.

The sort orders provided by glibc are, individual bugs aside, correct,
where "correct" means, they implement various national and international
standards. (Equally, the sort orders on Mac OS X are, degenerate cases
aside, broken, because they don't implement any recognized sorting
standard.) Of course, you are not required to like them, and there are
many people who have particular issues with them, but you won't get far
claiming they are wrong, if you don't have a recognized alternative
source to point to that defines correctness.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Relyea, Mike 2012-06-01 14:34:30 Lowest 2 items per
Previous Message Wes James 2012-05-31 17:46:31 Re: order by different on mac vs linux