Re: Sorting a list of Lists
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.