sorting two arrays
sorting two arrays
- Subject: sorting two arrays
- From: Jeff LaMarche <email@hidden>
- Date: Mon, 28 Jul 2008 11:08:32 -0400
Hey all...
I've got two arrays that are related, so that object 0 in one array
corresponds to object 0 in the other array. I'd like to implement a
sort based on the values in one array, but to reorder both array so
that the order of the two arrays stays in sync and that object x in
one array continues to correspond to the same thing as object x in the
other array after the sort.
I've got a general idea of how to implement the sort, but since I know
that there are a few places in the system where array pairs are used
like this, I wanted to see if there was any out-of-the-box way of
handling this scenario - I'd hate to reinvent the wheel if it's not
necessary. Does anyone know if there is any easy way to do this?
TIA,
Jeff
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden