Alphabetical sorting...

From: Chris Johnson <cmj(at)inline-design(dot)com>
To: General Questions for PostgreSQL <pgsql-general(at)postgreSQL(dot)org>
Subject: Alphabetical sorting...
Date: 1998-07-06 19:50:18
Message-ID: Pine.LNX.3.96.980706153810.3242B-100000@boreus.bedfo.ma.tiac.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

HELP!

Alphabetical sorting... is it broken or is this intentional. If this is
not a "feature" anyone have any idea of how to actually sort
alphabetically on a text field?

cmj=> create table test (test text);
CREATE
cmj=> insert into test values ('a');
INSERT 240009 1
cmj=> insert into test values ('A');
INSERT 240010 1
cmj=> insert into test values ('ABLE');
INSERT 240011 1
cmj=> insert into test values ('Able');
INSERT 240012 1
cmj=> insert into test values ('AXIOM');
INSERT 240013 1
select * from test order by test;
test
-----
A
ABLE
AXIOM
Able
a
(5 rows)

Thanks!
Chris

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Gilbert 1998-07-06 20:00:44 I'll use the index when I'm good and ready!
Previous Message Jeffrey Napolitano 1998-07-06 19:26:39 Varchar and varchar2