Re: Sort Multidimensional Array by Column 5
Re: Sort Multidimensional Array by Column 5
- Subject: Re: Sort Multidimensional Array by Column 5
- From: Jon Pugh <email@hidden>
- Date: Fri, 8 Oct 2010 08:13:26 -0700
At 10:42 AM +0100 10/8/10, Richard Lake wrote:
>Is there anyway for quickSort (and all them routines I don't comprehend) to ignore the first row/header row and just append that as item 1 at the end of the sort?
Just do it yourself. Make a copy of the first item and items 2 thru -1 of your data and sort the latter, then append the results to the former.
set header to item 1 of yourData
set sortables to item 2 thru -1 of yourData
--sort
set finalResult to header & the result
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden