pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mikel Lindsaar <raasdnil@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Ordering a name list and ignoring whitespace
Date: Thu, 16 Apr 2009 10:13:20 -0400
Message-ID: <16742.1239891200@sss.pgh.pa.us> (raw)
In-Reply-To: <57a815bf0904160351v7282fd00p7b7d9690ca48dcff@mail.gmail.com>
References: <57a815bf0904160351v7282fd00p7b7d9690ca48dcff@mail.gmail.com>

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



view thread (3+ messages)

Message-ID: <16742.1239891200@sss.pgh.pa.us>
Permalink:  ../16742.1239891200@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16742.1239891200@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, raasdnil@gmail.com
  Subject: Re: Ordering a name list and ignoring whitespace
  In-Reply-To: <16742.1239891200@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox