I have an array which have two types of Objects i.e (Object1 , Object2). Object1 has attribute named as "title" and Object2 has attribute named as "name".
Now i want to sort the array alphabetically. So is there any way so that i sort the array containing the objects with different AttributesName using NSSortDescriptor (or any other thing)?
You can use following code to compare your array containing objects of different type and value.
Hope this helps and let me know.. :)