Re: Sorting Lists???
Re: Sorting Lists???
- Subject: Re: Sorting Lists???
- From: John Delacour <email@hidden>
- Date: Sat, 22 Mar 2003 22:39:31 +0000
- Mac-eudora-version: 6.0a13
At 10:21 pm +0000 22/3/03, John Delacour wrote:
@values = sort (values %hash) ;
for $key (sort keys %hash) ...
Sorry, that should be
set ls to "5,e,4,d,2,c,3,a,1,b,10,f,9,g,8,h,7,i,6,j"
do shell script "perl -e '$list = qq~" & ls & "~ ;
%hash = split q~,~, $list ;
@values = sort {$a cmp $b} values %hash;
for $key (sort {$a <=> $b} keys %hash) {
print qq~$key $values[$i]$/~ ;
++$i
}'"
_______________________________________________
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.