refactored previous commit

This commit is contained in:
Ludovic Marcotte
2015-05-13 14:52:10 -04:00
parent 39aa9a97db
commit fb121974ec
+1 -10
View File
@@ -75,15 +75,6 @@ static NSArray *tasksFields = nil;
#define maxBlocks (offsetBlocks * 2) // maximum number of blocks to search
// for a free slot (10 days)
@implementation NSArray (SOGoBlocksCompare)
- (NSComparisonResult) compareBlock: (NSArray *) theOtherBlock
{
return [[self objectAtIndex: 5] compare: [theOtherBlock objectAtIndex: 5]];
}
@end
@implementation UIxCalListingActions
+ (void) initialize
@@ -493,7 +484,7 @@ static NSArray *tasksFields = nil;
}
}
[infos sortUsingSelector: @selector(compareBlock:)];
[infos sortUsingSelector: @selector(compareEventsStartDateAscending:)];
return infos;
}