in reply to sorting ip octets

Convert the ips to integers (there are built in functions for this) and then sort the integers, then convert them back to text form ips.

---
demerphq

Replies are listed 'Best First'.
Re^2: sorting ip octets
by Anonymous Monk on Feb 16, 2005 at 18:59 UTC
    I have no problem in converting them to integers, is going from column to column.

      Have a look at the Socket module which has tools for converting IP addresses into their integer form and back. inet_aton() and inet_ntoa() come to mind...

      ---
      demerphq