ORDER BY a string - Mailing list pgsql-general

From phazon
Subject ORDER BY a string
Date
Msg-id 94ffdc2e0711060809y7ec6a700jed0f63649eb0a24c@mail.gmail.com
Whole thread Raw
Responses Re: ORDER BY a string  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

I've to order by q query by a column.

SELECT a.id, a.nom
FROM table a
ORDER BY a.nom;

And i've something strange. It's order like that:

5   | aaaa
8   | aaab
15 | ** aaac
6   | aaad

I've "**" before the name in order to display them at first, but the 2
chars "**" are ignored in the order by.


Can anyone explain me why ?


PS: Sorry for my bad english, i'm french.

--
phazon

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to find non-unique indexes in system tables
Next
From: Tom Lane
Date:
Subject: Re: ORDER BY a string