diff --git a/SoObjects/SOGo/SOGoFolder.m b/SoObjects/SOGo/SOGoFolder.m index 26a82a32d..5587f18b8 100644 --- a/SoObjects/SOGo/SOGoFolder.m +++ b/SoObjects/SOGo/SOGoFolder.m @@ -44,6 +44,7 @@ #import "NSString+Utilities.h" #import "SOGoPermissions.h" #import "SOGoWebDAVAclManager.h" +#import "WORequest+SOGo.h" #import "WOResponse+SOGo.h" #import "SOGoFolder.h" @@ -232,14 +233,16 @@ { comparison = [self _compareByNameInContainer: otherFolder]; if (comparison == NSOrderedSame) - if ([self displayName] == nil) - comparison = NSOrderedAscending; - else if ([otherFolder displayName] == nil) - comparison = NSOrderedDescending; - else - comparison - = [[self displayName] - localizedCaseInsensitiveCompare: [otherFolder displayName]]; + { + if ([self displayName] == nil) + comparison = NSOrderedAscending; + else if ([otherFolder displayName] == nil) + comparison = NSOrderedDescending; + else + comparison + = [[self displayName] + localizedCaseInsensitiveCompare: [otherFolder displayName]]; + } } return comparison;