Result of ORDER-BY - Mailing list pgsql-general

From Good Day Books
Subject Result of ORDER-BY
Date
Msg-id 73605E5F6E3A432DBCC9A40A58BA781B@GDBMain
Whole thread Raw
Responses Re: Result of ORDER-BY  (Christophe Pettus <xof@thebuild.com>)
Re: Result of ORDER-BY  (Andrew Sullivan <ajs@crankycanuck.ca>)
List pgsql-general
[PostgreSQL 8.3.9]

I have a query, as follows

SELECT DISTINCT ON(category) category
FROM gdb_books
WHERE category LIKE 'Fiction%'
GROUP BY category

The (partial) result is this:
...
# Fiction - General (A)
# Fiction - General - Anthologies
# Fiction - General (B)
# Fiction - General (C)
# Fiction - General (D)
...

I would have expected '- Anthologies' to be either at the top, or at the bottom of the result.

Does anyone have an explanation why this is not so; are the special characters (parenthesis, hyphen) just ignored?  If
so,is there a way to force ORDER BY to include the special characters in the sort? 

Thank you for any reply.
Pat Willener
GDB Tokyo


pgsql-general by date:

Previous
From: John R Pierce
Date:
Subject: Re: Using the internal data dictionary
Next
From: Christophe Pettus
Date:
Subject: Re: Result of ORDER-BY