• 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: sorting a pair of arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sorting a pair of arrays


  • Subject: Re: sorting a pair of arrays
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 28 Jun 2011 14:10:41 +0100

You want an object that holds both integer and string as properties. Put those objects in an array and sort that.

On 28 Jun 2011, at 13:52, Rick C. wrote:

> Hi,
>
> I have a pair of arrays (one of integers and one of strings) and I need to sort the one of integers from largest to smallest and then however it gets sorted I need to copy that sorting in my strings array since they are related.  Any advice on what the best way to approach this is would be great since I don't have a lot of experience in sorting like this.  Thanks!
>
> rc_______________________________________________
>
> 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

_______________________________________________

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

References: 
 >sorting a pair of arrays (From: "Rick C." <email@hidden>)

  • Prev by Date: sorting a pair of arrays
  • Next by Date: Re: sorting a pair of arrays
  • Previous by thread: sorting a pair of arrays
  • Next by thread: Re: sorting a pair of arrays
  • Index(es):
    • Date
    • Thread