Re: Sorting Lists by multiple criteria
Re: Sorting Lists by multiple criteria
- Subject: Re: Sorting Lists by multiple criteria
- From: LE STANG Jean-Baptiste <email@hidden>
- Date: Wed, 19 Feb 2003 22:02:41 +0100
You might want to try quickSort, which is not an OSAX, but plain
Applescript
quickSort is this way :=>
http://www.applemods.com/getMod.php?script_ID=33
Jean-Baptiste LE STANG
Le mercredi, 19 fiv 2003, ` 19:21 Europe/Paris, Steve Kump a icrit :
Hi List,
I'm working on a little application that reads in some data as a list
of
lists. With Acme Script widgets, I can sort by any item within each
list:
Set myList to {{"Tom","Male", "Old"},{"Bob", "Male", "Young"}, {"Jane",
"Female", "MiddleAged"}, {"Joe", "Male", "Old"}}
Acme sort myList by item number 3
This will sort the list by age and return Jane at the top of the list
because "MiddleAged" will come up first.
This works fine. However, I would like to be able to sort this data
using
more than one criterion. Something like:
Acme sort myList by item number 3 then by item number 1
I haven't found any additions that allow me to do this, and I don't
want to
use FileMaker because I would like to keep this application
self-contained.
It would seem like such a hassle to write the data to a FileMaker
database
just to get this functionality.
I don't mind trying to write the functionality, but rather than
reinvent the
wheel, I was wondering if anyone has come across a way to do something
like
this.
Thanks for your help!
Steve
_______________________________________________
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.
_______________________________________________
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.