MySQL - Sort by IP Address

If you have a column containing ip addresses, sort the ip addresses numerically with:

ORDER BY INET_ATON(ip_address_column)

Comments

Popular posts from this blog

Linux: Permanent CIFS/SMB mount

Plesk - Decrypt FTP Passwords

IPTables: Clear all rules