diff --git a/Frameworks/Account/AccountManager.swift b/Frameworks/Account/AccountManager.swift index e9d964c74..8f5feb5c9 100644 --- a/Frameworks/Account/AccountManager.swift +++ b/Frameworks/Account/AccountManager.swift @@ -184,9 +184,7 @@ public final class AccountManager: UnreadCountProvider { if account2 === localAccount { return false } - - //TODO: Use localizedCaseInsensitiveCompare: - return account1.nameForDisplay < account2.nameForDisplay + return (account1.nameForDisplay as NSString).localizedStandardCompare(account2.nameForDisplay) == .orderedAscending } } }