for (int i = 0 ; i < [Array count]; i++)
{
NSDictionary* dic = [Array objectAtIndex:i];
s = [[s componentsSeparatedByString:@""] objectAtIndex:1];
for (int j = i + 1; j < [Array count]; j++)
{
NSDictionary* dic2 = [Array objectAtIndex:j];
NSString* s2 = [[[dic2
objectForKey:@"Calendar_EventTime"] componentsSeparatedByString:@" "] objectAtIndex:0];
s2 = [[s2 componentsSeparatedByString:@"月"] objectAtIndex:1];
s2 = [s2 substringToIndex:2];
if ([s integerValue] > [s2 integerValue])
{
[Array exchangeObjectAtIndex:i withObjectAtIndex:j];
}
}
}
愚蠢的冒泡排序~~