Order by and words beginning with capitals - Mailing list pgsql-novice

From Tjibbe Rijpma
Subject Order by and words beginning with capitals
Date
Msg-id 001701c50591$35932640$0100a8c0@TJIBBE
Whole thread Raw
Responses Re: Order by and words beginning with capitals  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
How can I make a query like this:
 
SELECT id, words FROM words ORDER BY upper(words)
 
That I get a result like this (with the capitals intact but ordered correctly):
 
1. bear
2. cat
3. Dog
4. fish
5. Giraffe
 
Tjibbe
 
 
ps
 
SELECT id, words, upper(words) FROM words ORDER BY upper(words)
 
Works, but that's not what I'm looking for.

pgsql-novice by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: How To Create DATETIME Data Types in A Table
Next
From: Tom Lane
Date:
Subject: Re: Order by and words beginning with capitals