• 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: Applescript 201 - speed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript 201 - speed


  • Subject: Re: Applescript 201 - speed
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 24 May 2010 15:52:05 -0400

On Mon, May 24, 2010 at 3:07 PM, Tommy Bollman <email@hidden> wrote:
I just wanted to add seriously, that the beauty of the sort command in unix
is that it is a stable sort which means that you can get at least two columns
sorted in one operation.

sort(1) is not stable by default; you have to specify -s.  However, stability only matters when you wind up doing "sort | sort"; in many cases you can specify multiple sort keys in a single command (e.g. "sort -k3,3 -k1,1" to sort by the third column and then by the first column).

--
Mark J. Reed <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/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Applescript 201 - speed (From: "John C. Welch" <email@hidden>)
 >Re: Applescript 201 - speed (From: Robert Poland <email@hidden>)
 >Re: Applescript 201 - speed (From: Tommy Bollman <email@hidden>)
 >Re: Applescript 201 - speed (From: Robert Poland <email@hidden>)
 >Re: Applescript 201 - speed (From: Tommy Bollman <email@hidden>)

  • Prev by Date: Re: Applescript 201 - speed
  • Next by Date: Re: Coping with Date format variations
  • Previous by thread: Re: Applescript 201 - speed
  • Next by thread: Re: Applescript 201 - speed
  • Index(es):
    • Date
    • Thread