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

Re: Sorting a list of records


  • Subject: Re: Sorting a list of records
  • From: Gil Dawson <email@hidden>
  • Date: Sat, 4 Sep 2010 19:37:57 -0700

Wow!

Thanks you all for your suggestions!

I've learned a lot about sorting in the last couple of weeks, and my project is coming along nicely.

What a great group to work with!

--Gil

On Aug 23, 2010, at 3:58 PM, Gil Dawson wrote:
> I need an algorithm to sort a list of records in a "stable" way.  By "stable", I mean

On Aug 23, 2010, at 5:10 PM, Mark J. Reed wrote:
> You could pick an efficient, stable algorithm from the table at
> http://en.wikipedia.org/wiki/Sorting_algorithm#Comparison_of_algorithms

On Aug 23, 2010, at 5:33 PM, Stockly, Ed wrote:
> Give this one a try.

On Aug 24, 2010, at 2:20 AM, Nigel Garvey wrote:
> Merge Sort is a stable. I have in fact recently posted a customisable
> Merge Sort on the same forum as above:
>
> <http://macscripter.net/viewtopic.php?pid=131165#p131165>

On Aug 24, 2010, at 9:49 PM, email@hidden wrote:
> The merge sort seems more complicated and a lot slower. Am I missing something?

On Aug 25, 2010, at 12:44 AM, Axel Luttgens wrote:

> Have you tried with longer lists?
>
> That said, it seems that the execution speed of your SortAList() handler may be greatly enhanced by prefixing each occurrence of a property with "my" (as in: my sortedList, my calcList, my listToSort...).
> Yeah, that old trick again. ;-)
 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: File path of a file
  • Next by Date: Aperture won't start a script
  • Previous by thread: image resize with overwrite date creation
  • Next by thread: Aperture won't start a script
  • Index(es):
    • Date
    • Thread