【文件属性】:
文件名称:IP排序,按照自然数
文件大小:7KB
文件格式:JAVA
更新时间:2017-09-08 06:01:24
IP 排序
支持IP按照自然数排序对型如:XXX.XXX.XXX.XXX#XXX,
XXX.XXX.XXX.XXXAXXX,XXX.XXX.XXX.XXXBXXX的IP进行排序。
效果如下:
原始:
192.168.254.1#09=attack
192.17.254.100#09=attack
192.18.254.100#09=attack
192.168.254.100A19=attack
192.168.254.10#09=attack
192.168.254.100B09=attack
192.168.254.100A09=attack
192.168.254.100A29=attack
192.168.254.100B29=attack
192.168.254.100#19=attack
192.10.254.100#09=attack
192.168.254.100B99=attack
192.168.254.10#10=month
192.168.254.11#11=bread
19.168.254.100#09=attack
排序后:
key= 19.168.254.100#09 and value= attack
key= 192.10.254.100#09 and value= attack
key= 192.17.254.100#09 and value= attack
key= 192.18.254.100#09 and value= attack
key= 192.168.254.1#09 and value= attack
key= 192.168.254.10#09 and value= attack
key= 192.168.254.10#10 and value= month
key= 192.168.254.11#11 and value= bread
key= 192.168.254.100#19 and value= attack
key= 192.168.254.100A09 and value= attack
key= 192.168.254.100A19 and value= attack
key= 192.168.254.100A29 and value= attack
key= 192.168.254.100B09 and value= attack
key= 192.168.254.100B29 and value= attack
key= 192.168.254.100B99 and value= attack