• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sorting IP addresses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sorting IP addresses


  • Subject: Re: Sorting IP addresses
  • From: Gary Lists <email@hidden>
  • Date: Fri, 19 Dec 2003 16:43:52 -0500
  • Http: //bau2.uibk.ac.at/sg/python/Sounds/HolyGrail.wav/taunt.wav

On or about 12-19-03 10:46 AM, Doug McNutt wrote:

>> 24.47.176.225 -> 024.047.176.225
>
> I didn't suggest it but I did warn against it. It's worth repeating I guess.
>
> In your version above 024 is properly interpreted as an octal number following
> C/UNIX conventions. It will fail or point to an incorrect site if sent to a
> browser or a DNS server.
>
> It fooled me once.

I think the OP meant that one could add the '0' for the sort, not leave the
'0' in the IP.

When I first read the original post, I thought "oh, pad with zero then
remove", but the conversation quickly turned to all that squaring and such,
so I figured I must not know what the OP wanted.

I still suggest just padding, sorting, removing with a leading zero.
--
Gary
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Sorting IP addresses (From: Doug McNutt <email@hidden>)

  • Prev by Date: Mount volume problems
  • Next by Date: Re: Alias vs. Finder object (was: Accented Characters in Finder N ames)
  • Previous by thread: Re: Sorting IP addresses
  • Next by thread: Re: Sorting IP addresses
  • Index(es):
    • Date
    • Thread