|Apr 13, 2009, 11:07 PM||#1|
How to add these object with name to the array by this order?
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 ,button 2 , button 11 , button 111, but I found that these object can add the array by thhis order: button 1 , button 11,button 111 , button 2.why ? Thank you for your answer!
|Apr 13, 2009, 11:15 PM||#2|
Are you sorting before you insert or inserting then sorting? The issue is that a lexicographical sort instead of a numeric sort on the second "token". You should have options on sorting this differently. What are you using to sort now?
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Resolved: How do I convert an NSData object to an NSDictionary object, and vice versa?||moonman239||iPhone/iPad Programming||6||May 2, 2014 02:17 PM|
|How do I add a key/value pair to an AVQueuePlayer object?||moonman239||iPhone/iPad Programming||0||Feb 10, 2014 08:46 PM|
|Apple should make a method that returns an array's object that satisfies a predicate.||moonman239||iPhone/iPad Programming||5||Nov 21, 2013 08:21 PM|
|Object in array is being skipped||moonman239||iPhone/iPad Programming||12||Sep 7, 2013 02:59 PM|
|How can I take a random object from one array, and insert to another? **Help**||iJustinCabral||iPhone/iPad Programming||18||Aug 22, 2012 12:25 PM|
All times are GMT -5. The time now is 09:01 PM.