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

Re: Sorting a list of Lists


  • Subject: Re: Sorting a list of Lists
  • From: email@hidden
  • Date: Thu, 8 Jul 2004 11:05:27 -0400

Ken , thanks for the help.

What I need the sort to do is this. I have a list that contains the
bounds of text boxes on an InDesign page that looks like this.

{{1.59, 2.99, 1.768, 3.586}, {1.31, 2.99, 1.486, 8.004}, {1.035, 2.990,
1.205, 8.004} }

I would like for it to look like this when run through a sort routine.

{{1.035, 2.99, 1.205, 8.004}, {1.31, 2.99, 1.486, 8.004}, {1.59, 2.99,
1.768, 3.586}}

I do not want to arrange the values in the sublists as they contain x,y
coordinates. I would like to be able to sort first based on the second
item in each sublist and then by the first item. When I saw the
quicksortonitem handler in the archives the result was exactly what I was
looking for but I got stack overruns when running it.

Thanks in advance for any help

Andrew



--
Andrew Donnelly
System Administrator
Que-Net Media
A Member of the Quebecor World Group

450 Hood Road
Markham, Ontario, Canada, L3R 9Z3
Phone: (905) 513-2700 #3354
Toll Free: 1-877-336-8984
email@hidden
_______________________________________________
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.


  • Prev by Date: CLOSE THE CD TRAY
  • Next by Date: Re: CLOSE THE CD TRAY
  • Previous by thread: Re: Sorting a list of Lists
  • Next by thread: Re: Sorting a list of Lists
  • Index(es):
    • Date
    • Thread