okey, this is my problem:

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

I whan't to sort the objects in the array by OBJECT.NSNumber (highscoresdbObj.hsdbname) decresending!

could someone please help me?

Sincerly Jonny! :)

link|improve this question
1  
It's unrelated to your problem, but consider using readable names. To my tired eyes after hours of reading, "highscoresdbObj.hsdbname" is about as meaningful as alphabet soup. – Chuck Nov 22 '10 at 21:23
feedback

2 Answers

up vote 4 down vote accepted

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

link|improve this answer
feedback

This question has a lot of very good answers about this.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.