Skip site navigation (1) Skip section navigation (2)

Re: Ordering not acting right.

From: Lennin Caro <lennin(dot)caro(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org, "Blanco, Jose" <blancoj(at)umich(dot)edu>
Subject: Re: Ordering not acting right.
Date: 2008-08-20 20:36:34
Message-ID: 634750.86347.qm@web59516.mail.ac4.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-admin
> 
> > 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


      


In response to

Responses

pgsql-admin by date

Next:From: slamp slampDate: 2008-08-20 20:43:06
Subject: pg_log directory
Previous:From: Scott MarloweDate: 2008-08-20 20:31:37
Subject: Re: Ordering not acting right.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group