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

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.

  • Follow-Ups:
    • Re: Sorting Lists by multiple criteria
      • From: LE STANG Jean-Baptiste <email@hidden>
  • Prev by Date: Re: 'sh: ping: command not found' error
  • Next by Date: Subject: How do I script "Hide Toolbar" in Finder
  • Previous by thread: Newbie Q on System Events
  • Next by thread: Re: Sorting Lists by multiple criteria
  • Index(es):
    • Date
    • Thread