• 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: Doug McNutt <email@hidden>
  • Date: Fri, 19 Dec 2003 08:46:50 -0700

At 18:43 +1100 12/19/03, Matthew Smith wrote:
>Did anyone suggest adding leading zeros to each part and sorting as text?
>It's even readable.
>
>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.

--
--> There are 10 kinds of people: those who understand binary, and those who don't <--
_______________________________________________
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.

  • Follow-Ups:
    • Re: Sorting IP addresses
      • From: Matthew Smith <email@hidden>
    • Re: Sorting IP addresses
      • From: Gary Lists <email@hidden>
References: 
 >Re: Sorting IP addresses (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: Accented Characters in Finder Names
  • Next by Date: Re: change from upper to lower case
  • Previous by thread: Re: Sorting IP addresses
  • Next by thread: Re: Sorting IP addresses
  • Index(es):
    • Date
    • Thread