mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-20 18:38:11 +00:00
(fix) fixed task sorting on multiple categories
This commit is contained in:
1 parent
cb532de83a
commit
ce8f2e9481
2 files changed
+6
No files matched your search
@@ -266,7 +266,12 @@
|
||||
NSComparisonResult result;
|
||||
|
||||
selfCategory = [self objectAtIndex: taskCategoryIndex];
|
||||
if ([selfCategory isKindOfClass: [NSArray class]])
|
||||
selfCategory = [(id)selfCategory lastObject];
|
||||
|
||||
otherCategory = [otherTask objectAtIndex: taskCategoryIndex];
|
||||
if ([otherCategory isKindOfClass: [NSArray class]])
|
||||
otherCategory = [(id)otherCategory lastObject];
|
||||
|
||||
if ([selfCategory isNotNull] && [otherCategory isNotNull])
|
||||
result = [selfCategory caseInsensitiveCompare: otherCategory];
|
||||
|
||||
Reference in new issue
Block a user