How to sort strings containing a dot?

From: Pierre LEBRECH <pierre(dot)lebrech(at)laposte(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: How to sort strings containing a dot?
Date: 2008-03-25 14:55:46
Message-ID: 47E91272.9090001@laposte.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I want to sort strings containing a dot but by taking care of this dot
like any other character.

example :

Currently, I get this after the sort :

co.aaa
co.abb
co.cab
com
co.ment
com.enta

But I would like to get this :

co.aaa
co.abb
co.cab
co.ment
com
com.enta

How I can do this?
Thank you

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-03-25 15:08:05 Re: select any table
Previous Message Roberts, Jon 2008-03-25 14:54:20 select any table