abegehr
abegehr

Reputation: 569

Objective-c: sort NSMutableArray by OBJECT_IN_ARRAY.NSNUMBER

OK, this is my problem:

I have a NSMutableArray (hsdbarray) with objects (highscoresdbObj) in it.

I want to sort the objects in the array by OBJECT.NSNumber (highscoresdbObj.hsdbname) descending.

Could someone please help me?

Sincerly Jonny! :)

Upvotes: 0

Views: 640

Answers (1)

Chuck
Chuck

Reputation: 237080

Create an NSSortDescriptor with the key "hsdbname" and descending order. Tell the array to sort using this descriptor.

Upvotes: 4

Related Questions