• 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
Sorting IP addresses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting IP addresses


  • Subject: Sorting IP addresses
  • From: Marconi <email@hidden>
  • Date: Wed, 17 Dec 2003 07:37:22 -0700

Given a list of IP addresses, I need to sort them in proper (ascending) order. That is, I need a routine which knows that 205.192.32.45 comes AFTER 65.163.82.130 and so forth.

I think the key would be setting text item delimiters to a period and then sorting on each quad.

Can anyone help me out? (I'm going to be doing this in BBEdit.)



--
"It's no accident that the American people are constantly fooled by the fakery of phony politicians. They're not fooled by fake ballplayers, because they can't just talk a good game, they have to play a good game." --Jackie Mason and Raoul Felder
_______________________________________________
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: Christopher Stone <email@hidden>
    • Re: Sorting IP addresses
      • From: Deivy Petrescu <email@hidden>
    • Re: Sorting IP addresses
      • From: Doug McNutt <email@hidden>
    • Re: Sorting IP addresses
      • From: Steve Mills <email@hidden>
    • Re: Sorting IP addresses
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: [OT] Verification required for ... protected by 0Spam.com.
  • Next by Date: Server Ping!
  • Previous by thread: Script Editor 2.0v43 Search field disappears
  • Next by thread: Re: Sorting IP addresses
  • Index(es):
    • Date
    • Thread