Try this formula then sort on it.
It will display the IP, no matter the number in the octet as a string with the format of XXX.XXX.XXX.XXX with each number in each section displaying as three digits. For example, 10.57.0.21 displays as 010.057.000.021
stringvar ip:= "10.57.0.21"; //replace with your field
stringvar oct1;
stringvar oct2;
stringvar oct3;
stringvar oct4;
for loop:=1 to 4 do(
if loop = 4 then
out:=out+totext(val(cf[loop]),"000" else
out:=out + totext(val(cf[loop]),"000" + "."
out
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.