Use localizedStandardCompare when sorting Account names. It’s likely I got the order backwards, but I won’t know until we have accounts other than the local account. (I always get this backwards, even knowing that I always get it backwards.)

This commit is contained in:
Brent Simmons 2017-10-18 18:21:36 -07:00
parent 19b8d5fbfc
commit 324f330a3b

View File

@ -184,9 +184,7 @@ public final class AccountManager: UnreadCountProvider {
if account2 === localAccount { if account2 === localAccount {
return false return false
} }
return (account1.nameForDisplay as NSString).localizedStandardCompare(account2.nameForDisplay) == .orderedAscending
//TODO: Use localizedCaseInsensitiveCompare:
return account1.nameForDisplay < account2.nameForDisplay
} }
} }
} }