Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 112FDB5D80B for ; Mon, 13 Jun 2011 18:52:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 06910-05 for ; Mon, 13 Jun 2011 21:52:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 60F9DB5D803 for ; Mon, 13 Jun 2011 18:52:07 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p5DLq6ib046861 for ; Mon, 13 Jun 2011 21:52:06 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p5DLq6Hq046860; Mon, 13 Jun 2011 21:52:06 GMT (envelope-from www) Date: Mon, 13 Jun 2011 21:52:06 GMT Message-Id: <201106132152.p5DLq6Hq046860@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6056: sorting issues From: "Mike Hepworth" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201106/101 X-Sequence-Number: 30480 The following bug has been logged online: Bug reference: 6056 Logged by: Mike Hepworth Email address: michael.w.hepworth@gmail.com PostgreSQL version: 8.4 Operating system: Ubuntu 10.4 Description: sorting issues Details: Have database that is utf-8 encoding so that I can support both english, french, and spanish. Having problems with the ordering of data. I execute the following sql statment: select * from (values('HALL, ANDY'),('HALLBERG, FRANK'),('HALLDEN, DOUGLAS'),('HALL, DOUGLAS') ) x ORDER BY 1; and get the following results HALL, ANDY HALLBERG, FRANK HALLDEN, DOUGLAS HALL, DOUGLAS Please Help...