Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 5475364FD0B for ; Wed, 20 Aug 2008 17:36:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49407-02 for ; Wed, 20 Aug 2008 17:36:33 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from n17.bullet.mail.mud.yahoo.com (n17.bullet.mail.mud.yahoo.com [68.142.206.144]) by postgresql.org (Postfix) with SMTP id 421B164FD0F for ; Wed, 20 Aug 2008 17:36:36 -0300 (ADT) Received: from [209.191.108.97] by n17.bullet.mail.mud.yahoo.com with NNFMP; 20 Aug 2008 20:36:34 -0000 Received: from [76.13.13.26] by t4.bullet.mud.yahoo.com with NNFMP; 20 Aug 2008 20:36:34 -0000 Received: from [76.13.10.163] by t3.bullet.mail.ac4.yahoo.com with NNFMP; 20 Aug 2008 20:36:34 -0000 Received: from [127.0.0.1] by omp104.mail.ac4.yahoo.com with NNFMP; 20 Aug 2008 20:36:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 857947.10299.bm@omp104.mail.ac4.yahoo.com Received: (qmail 88883 invoked by uid 60001); 20 Aug 2008 20:36:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=zw4RzzJlRea93zr4aQ+TiOoigrBiaEdDtZxTuXn6DEo7/YXS+VvfEIWBPA7n32UBF7K2paFXCm3AtcsEbVhH1IuRsdLJN12BxC6j0wdsmfyOdvff/UZotEA3DhDdZ+a0ox3DfqOcw0zekE0inwWtpKKD7U02X3aZVqPK/sZ2ZfY=; X-YMail-OSG: go6F.cMVM1lLUihj_418XJN5xZy_Th.swTYEkDLqEDfy_RFuM1P.DaVxz5ySp0U2XUOdUut2KZmZpF_jjEC5Jl_wb5c6jorx0fiCx.0vnQ-- Received: from [209.88.228.11] by web59516.mail.ac4.yahoo.com via HTTP; Wed, 20 Aug 2008 13:36:34 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Wed, 20 Aug 2008 13:36:34 -0700 (PDT) From: Lennin Caro Reply-To: lennin.caro@yahoo.com Subject: Re: Ordering not acting right. To: pgsql-admin@postgresql.org, "Blanco, Jose" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <634750.86347.qm@web59516.mail.ac4.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/92 X-Sequence-Number: 29937 > > > 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