• 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 Lists???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Sorting Lists???
      • From: Richard Simms <email@hidden>
References: 
 >Sorting Lists??? (From: Jakob Peterhänsel <email@hidden>)
 >Re: Sorting Lists??? (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Sorting Lists???
  • Next by Date: Re: Sine of the times: Much better window shaker
  • Previous by thread: Re: Sorting Lists???
  • Next by thread: Re: Sorting Lists???
  • Index(es):
    • Date
    • Thread