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

Debian - Install on BTRFS with Snapper Backups, GRUB-BTRFS and ZRAM

Docker