mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Fix Manu's comments
This commit is contained in:
parent
a21461b951
commit
e16b5927cc
1 changed files with 2 additions and 2 deletions
|
@ -990,7 +990,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
|
|||
// Order alphabetically the groups
|
||||
[communitiesArray sortUsingComparator:^NSComparisonResult(MXGroup *group1, MXGroup *group2)
|
||||
{
|
||||
if (group1.profile.name.length && group1.profile.name.length)
|
||||
if (group1.profile.name.length && group2.profile.name.length)
|
||||
{
|
||||
return [group1.profile.name compare:group2.profile.name options:NSCaseInsensitiveSearch];
|
||||
}
|
||||
|
@ -998,7 +998,7 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
|
|||
{
|
||||
return NSOrderedAscending;
|
||||
}
|
||||
else if (group1.profile.name.length)
|
||||
else if (group2.profile.name.length)
|
||||
{
|
||||
return NSOrderedDescending;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue