If presenting result in multivalue format is that important, you can pad decimal octet IPv4 address to full three digits, then use mvsort. | makeresults
| eval ip = split("119.0.6.159,62.0.3.75,6...
See more...
If presenting result in multivalue format is that important, you can pad decimal octet IPv4 address to full three digits, then use mvsort. | makeresults
| eval ip = split("119.0.6.159,62.0.3.75,63.0.3.84,75.0.3.80,92.0.4.159", ",")
``` data emulation above ```
| eval idx = mvrange(0,4)
| foreach ip mode=multivalue
[eval sorted_ip = mvappend(sorted_ip, mvjoin(mvmap(idx, printf("%.3d", tonumber(mvindex(split(<<ITEM>>, "."), idx)))), "."))]
| eval sorted_ip = mvsort(sorted_ip)
| table ip sorted_ip You'll get ip sorted_ip 119.0.6.159 62.0.3.75 63.0.3.84 75.0.3.80 92.0.4.159 062.000.003.075 063.000.003.084 075.000.003.080 092.000.004.159 119.000.006.159 If you want the decimal octets to be stripped of padding, you can do that with printf or any number of other methods. I'll leave this for your homework.