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

chekout this

this 1 also

both you.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -