Re: Ordering a name list and ignoring whitespace

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mikel Lindsaar <raasdnil(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Ordering a name list and ignoring whitespace
Date: 2009-04-16 14:13:20
Message-ID: 16742.1239891200@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Mikel Lindsaar <raasdnil(at)gmail(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message DM 2009-04-16 19:00:28 how to set the value to the column
Previous Message ShuA 2009-04-16 13:24:05 Re[2]: Need a script that bakes INSERT script from SELECT results