Sort IP List

Bob Sneidar bobsneidar at iotecdigital.com
Fri Jun 29 18:15:15 EDT 2018


Wait I know exactly what is wrong. I have a few lines that use CIDR notation ie. 192.168.1.0/24 and THAT is not a number!

Bob S


> On Jun 29, 2018, at 15:13 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> Yeah mine won't run. I have:
> 
> function sortIPList2 pIPList
>   set the itemdelimiter to "."
>   try
>      sort lines of pIPList ascending numeric by (item 1 of each +0) & (item 2 of each + 0) & (item 3 of each + 0) & (item 4 of each + 0)
>   catch theError
>      breakpoint
>   end try
>   return pIPList
> end sortIPList2
> 
> Script hits breakpoint but there is nothing in theError. What version/OS are you running? We may have uncovered an engine anomaly. 
> 
> Bob S
> 
>> On Jun 29, 2018, at 15:00 , Mike Bonner via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> sort lines of tList ascending numeric by (item 1 of each +0) & (item 2 of
>> each + 0) & (item 3 of each + 0) & (item 4 of each + 0)
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list