Hi i am having a nsmutable array and in that nearly 50 -60 object having different names ,and can i sort this array in alphabatical order (Is it possible, How?) (is it a duplicate question ?)
Tell me more
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
For a simple sort like this, I like to use sort descriptors. Suppose you have an mutable array of objects whose class has a
| |||||||||
|
Absolutely, you can use
If your array has custom objects, then you will need to implement a sorting method on those objects:
| |||||
|