sort text field numerically - Mailing list pgsql-sql

From Frank Morton
Subject sort text field numerically
Date
Msg-id 020101c1fb42$3665f770$8455e5ce@edison
Whole thread Raw
In response to order by  (Mathieu Arnold <mat@mat.cc>)
Responses Re: sort text field numerically
List pgsql-sql
I have a table with a column called "weight" that
is a text field, but in this case, contains float values,
such as ".8" or "0.25". Might also be null.

How can I sort them in numeric order instead of
textual order? Thanks.




pgsql-sql by date:

Previous
From: juerg.rietmann@pup.ch
Date:
Subject: date_part, how to use
Next
From: Mathieu Arnold
Date:
Subject: Re: order by