I wish to sort a list of IP address.
Is there any function in Postgresql to use with the order by like INET_ATON in MySql ?
My current IP is on string format.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can order your IP address column
IP_Addresswith something like this:See the documnetation for further reference.
Edit:
This is actually not a function but a type cast to the postgres integrated type for IP addresses.