• 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: Sort a list of lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sort a list of lists


  • Subject: Re: Sort a list of lists
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 17 Nov 2006 08:44:14 +1100
  • Thread-topic: Sort a list of lists

On 17/11/06 8:36 AM, "CYB" <email@hidden> wrote:

> My typical list looks like {{5.0, 120.0, 40.0, 169.0}, {10.0, 10.0, 50.0,
> 59.0}, {70.0, 20.0, 110.0, 69.0}, {70.0, 80.0, 110.0, 128.0}}

One way to do it is to sort on a single value. Assume your values can never
exceed 10000. You can then make a new value equal to the first * 10000 + the
second. Then you can sort by this value.

--
Shane Stanley <email@hidden>


 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Sort a list of lists (From: CYB <email@hidden>)

  • Prev by Date: Sort a list of lists
  • Next by Date: Re: Sort a list of lists
  • Previous by thread: Sort a list of lists
  • Next by thread: Re: Sort a list of lists
  • Index(es):
    • Date
    • Thread