mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-18 04:55:56 +00:00
(fix) make sure we return event blocks sorted by start date (#2939)
This commit is contained in:
@@ -75,6 +75,15 @@ 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
|
||||
@@ -483,7 +492,9 @@ static NSArray *tasksFields = nil;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[infos sortUsingSelector: @selector(compareBlock:)];
|
||||
|
||||
return infos;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user