Re: [GENERAL] order by

Bruce Momjian <maillist@candle.pha.pa.us>

From: Bruce Momjian <maillist@candle.pha.pa.us>
To: dhm@paradigm.webvision.com (dave madden)
Cc: milang@tal.org, pgsql-general@postgreSQL.org
Date: 1998-06-11T17:31:57Z
Lists: pgsql-general
> 
> There may be a special function (or you could write one) to sort
> numbers which are represented as varchars, but a better solution would
> be to re-store the IP numbers as integers.  This will also allow you
> to work on them with netmasks and so forth.  Convert them back to
> A.B.C.D when you print them out.
> 

See contrib/ip_and_mac.

-- 
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)