Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 41EA711DF226 for ; Thu, 31 May 2012 16:52:55 -0300 (ADT) Received: from mailout-de.gmx.net ([213.165.64.22]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SaBQT-0005Kf-KQ for pgsql-sql@postgresql.org; Thu, 31 May 2012 19:52:54 +0000 Received: (qmail invoked by alias); 31 May 2012 19:52:40 -0000 Received: from a88-115-214-103.elisa-laajakaista.fi (EHLO [10.0.0.104]) [88.115.214.103] by mail.gmx.net (mp030) with SMTP; 31 May 2012 21:52:40 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX18Fbcpmh0kFaYaR0xgpyYIZEVkXX2sGoRQDVdUWBi 8E79nClDrREB67 Message-ID: <1338493959.22408.27.camel@vanquo.pezone.net> Subject: Re: order by different on mac vs linux From: Peter Eisentraut To: Wes James Cc: pgsql-sql@postgresql.org Date: Thu, 31 May 2012 22:52:39 +0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2-1 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 X-Y-GMX-Trusted: 0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/106 X-Sequence-Number: 36654 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.