MySQL, Trying to get a list of ip addresses, in order.
this query
select ip from sn_192_168_0
gives this
192.168.
you can use
SELECT ip FROM sn_192_168_0 ORDER BY LPAD( ip, 16, 0 )
the number 16 is the max length of the ip