Sorting Lists by multiple criteria
Sorting Lists by multiple criteria
- Subject: Sorting Lists by multiple criteria
- From: Steve Kump <email@hidden>
- Date: Wed, 19 Feb 2003 10:21:17 -0800
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.