iphone - Sorting of Date String using sortUsingDescriptors? -
i have number of arrays of dictionary
points = 200; startdate = "jun 04, 2011, 13:15 pm"; points = 200; startdate = "may 01, 2011, 11:15 pm"; , ------- i have sorting on basis of startdate.
i have used number of sorting's earlier numerical.. alphabetical sorting etc via method:
-(nsmutablearray*)sorteventsarray:(nsmutablearray*)arraytosort :(nsstring*)sortexpression { nssortdescriptor *mysorter = [[nssortdescriptor alloc] initwithkey:sortexpression ascending:yes]; [arraytosort sortusingdescriptors:[nsmutablearray arraywithobject:mysorter]]; return arraytosort; } but not working date string.
please help
Comments
Post a Comment