"correct" sorting. - Mailing list pgsql-sql

From Jeff MacDonald
Subject "correct" sorting.
Date
Msg-id Pine.NEB.4.05.10105030038150.18863-100000@tht.net
Whole thread Raw
Responses RE: "correct" sorting.
Re: "correct" sorting.
List pgsql-sql
Hi folks,

say i have a text field with teh values

1,2,3,10,20,30,1a,1b,2a,2b

and i want to sort it so i get,

1
1a
1b
2
2a
2b
3
10
20
30

is there anyway to do that with postgresql ?
below is what actually happens.

jeff=> select * from foo order by var1;var1 
------1101a1b2202a2b3303a3b
(12 rows)



pgsql-sql by date:

Previous
From: Jie Liang
Date:
Subject: Re: PL/Perl documentation ...
Next
From: "Subhramanya Shiva"
Date:
Subject: How to encode and decode password in pgsql !!