Re: Applescript 201 - speed
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