I have some object with name , just like button 1 , button 2 , button 11 ,button 111 , I want to add this object to a array by this order: button 1 ,butto
The same way that if you had files of this name in Finder they would order the same way.
To get proper ordering you need to name them button 001, button 002, button 011, etc.
Alternatively, you'll have to write your own sort descriptors.
See here for NSMutableArray sortUsingSelector: and here for NSSortDescriptor