pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lennin Caro <lennin.caro@yahoo.com>
To: pgsql-admin@postgresql.org, "Blanco, Jose" <blancoj@umich.edu>
Subject: Re: Ordering not acting right.
Date: Wed, 20 Aug 2008 13:36:34 -0700 (PDT)
Message-ID: <634750.86347.qm@web59516.mail.ac4.yahoo.com> (raw)
In-Reply-To: <E0217C87D1BA1043AC897ACFA468CEE6022EF9CE@ECLUST2-VS3.adsroot.itcs.umich.edu>

> 
> > I have a text field which I use to store names (
> lastname, firstname )
> 
> > and suppose we have the following 3 authors in the
> field:
> >    ta, a
> >    ta, z
> >    tab, a
> > 
> > I would expect them to show up in the order shown
> above when I select 
> > this field and order it by it, but instead I get:
> > 
> >    ta, a
> >    tab, a
> >    ta, z
> > 
> > Some one has suggested that this may have to do with
> my locale 
> > setting.
> > I'm not an administrator so I'm not sure what
> how to check for the 
> > locale setting or what to change it to.  Does any one
> have any 
> > suggestions?
> > 
> > I'm using postgres 8.1.11.
> 
> can you show the query sintax?

ok the result of the query is correct the string 'ta' is minor that 'tab'
then 'ta, a' and 'ta, b' is minor to 'tab, a'. If you split the names you can order this


      




view thread (6+ messages)  latest in thread

Message-ID: <634750.86347.qm@web59516.mail.ac4.yahoo.com>
Permalink:  ../634750.86347.qm@web59516.mail.ac4.yahoo.com/
Also on:    postgresql.org/message-id/634750.86347.qm@web59516.mail.ac4.yahoo.com

 · 

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-admin@postgresql.org
  Cc: lennin.caro@yahoo.com, blancoj@umich.edu
  Subject: Re: Ordering not acting right.
  In-Reply-To: <634750.86347.qm@web59516.mail.ac4.yahoo.com>

* 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