mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-20 05:28:54 +01:00
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:
parent
19b8d5fbfc
commit
324f330a3b
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user