Re: Ordering a name list and ignoring whitespace - Mailing list pgsql-sql

From Tom Lane
Subject Re: Ordering a name list and ignoring whitespace
Date
Msg-id 16742.1239891200@sss.pgh.pa.us
Whole thread Raw
In response to Ordering a name list and ignoring whitespace  (Mikel Lindsaar <raasdnil@gmail.com>)
List pgsql-sql
Mikel Lindsaar <raasdnil@gmail.com> writes:
> I'm trying to select a list of names in alphabetical order but
> ignoring the whitespace.

> So for example, the name "La Combe" should come after "Lace" but
> before "Lacs..."

FWIW, this would probably happen automatically if you were using a
non-C locale.  I'm not sure that's really a good solution, because
switching to a different locale would affect every sort operation
you ever do.  But it's an alternative to consider.
        regards, tom lane


pgsql-sql by date:

Previous
From: ShuA
Date:
Subject: Re[2]: Need a script that bakes INSERT script from SELECT results
Next
From: Gerardo Herzig
Date:
Subject: finding UNIQUES in information_schema