Re: Multi-Array Sorting Problem
Re: Multi-Array Sorting Problem
- Subject: Re: Multi-Array Sorting Problem
- From: Matt Neuburg <email@hidden>
- Date: Wed, 16 Aug 2006 10:01:03 -0700
- Thread-topic: Multi-Array Sorting Problem
On Tue, 15 Aug 2006 12:43:53 -0500, Todd Freese
<email@hidden> said:
>I have two arrays that need to be sorted on the values of one of the
>arrays. For example, sort Array B (which is an array of NSNumbers)
>and rearrange Array A to keep the same item relationship to Array B.
>
>Seems like a very common thing and I can't seem to find a call or a
>doc ref to do so.
Howzabout rebuilding Array A whenever Array B is sorted? Or howzabout
sorting Array C (which holds *all* the information, in dictionaries) and
then rebuilding both Array A and Array B? m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden