Sorting IP addresses
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.