Re: ORDER BY is case insensitive - Mailing list pgsql-sql

From Tom Lane
Subject Re: ORDER BY is case insensitive
Date
Msg-id 8426.1277242801@sss.pgh.pa.us
Whole thread Raw
In response to ORDER BY is case insensitive  (Bryan White <nicktook@gmail.com>)
List pgsql-sql
Bryan White <nicktook@gmail.com> writes:
> I was suprised to find out that ORDER BY is case insensitive.  Is
> there a way to do a case sensitive ORDER BY clause?

Text sort order is determined by the rules of the locale you're using,
specifically the database's LC_COLLATE setting.  Most implementations of
en_US locale use "dictionary" ordering.  You might prefer C locale's
rules instead.
        regards, tom lane


pgsql-sql by date:

Previous
From: Gerardo Herzig
Date:
Subject: Re: ORDER BY is case insensitive
Next
From: silly sad
Date:
Subject: Re: How to Insert and retrieve multilingual (Hindi "an Indian language") into PostgreSQL