• 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 by multiple criteria
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Sorting Lists by multiple criteria (From: Steve Kump <email@hidden>)

  • Prev by Date: Photoshop 7
  • Next by Date: Log out script in 10.2.x
  • Previous by thread: Sorting Lists by multiple criteria
  • Next by thread: Re: Sorting Lists by multiple criteria
  • Index(es):
    • Date
    • Thread