mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-20 06:03:20 +00:00
See ChangeLog
Monotone-Parent: 3c56ca9ef63d29beeb411890d72b4047a46d7713 Monotone-Revision: 4126acd8a39c70e133baeb54d6b5122aac7b5b8a Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-05-31T19:12:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -118,13 +118,12 @@
|
||||
{
|
||||
NSComparisonResult result;
|
||||
unsigned int selfTime, otherTime;
|
||||
Class nullClass;
|
||||
|
||||
result = [self _compareCompletionWithStatus1: [self objectAtIndex: 2]
|
||||
andStatus2: [otherTask objectAtIndex: 2]];
|
||||
andStatus2: [otherTask objectAtIndex: 2]];
|
||||
if (result == NSOrderedSame)
|
||||
{
|
||||
nullClass = [NSNull class];
|
||||
// End date
|
||||
selfTime = [[self objectAtIndex: 4] intValue];
|
||||
otherTime = [[otherTask objectAtIndex: 4] intValue];
|
||||
if (selfTime && !otherTime)
|
||||
@@ -138,8 +137,16 @@
|
||||
else if (selfTime < otherTime)
|
||||
result = NSOrderedAscending;
|
||||
else
|
||||
result = [[self objectAtIndex: 1]
|
||||
compare: [otherTask objectAtIndex: 1]];
|
||||
{
|
||||
// Calendar ID
|
||||
result = [[self objectAtIndex: 1]
|
||||
compare: [otherTask objectAtIndex: 1]];
|
||||
if (result == NSOrderedSame)
|
||||
// Task name
|
||||
result = [[self objectAtIndex: 3]
|
||||
compare: [otherTask objectAtIndex: 3]
|
||||
options: NSCaseInsensitiveSearch];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user