From fb121974ec38564f194cb2f710d6adaf1758bc50 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Wed, 13 May 2015 14:52:10 -0400 Subject: [PATCH] refactored previous commit --- UI/Scheduler/UIxCalListingActions.m | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index f6690f080..bb94e7c4f 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -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; }