Skip navigation.
 
mlRe: Multi-Array Sorting Problem
FROM : Matt Neuburg
DATE : Wed Aug 16 19:01:03 2006

On Tue, 15 Aug 2006 12:43:53 -0500, Todd Freese
<<email_removed>> 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_removed>, <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>

Related mailsAuthorDate
mlMulti-Array Sorting Problem Todd Freese Aug 15, 19:43
mlRe: Multi-Array Sorting Problem Jon Hull Aug 15, 20:11
mlRe: Multi-Array Sorting Problem Matt Neuburg Aug 16, 19:01