From b9ccd5aabbc864273d5c30388ec46f24eb55df25 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 15 Aug 2020 07:55:49 -0500 Subject: [PATCH] Make folder sort case insensitive. Issue #2201 --- Account/Sources/Account/Account.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Account/Sources/Account/Account.swift b/Account/Sources/Account/Account.swift index 3157fb699..43f9e9d63 100644 --- a/Account/Sources/Account/Account.swift +++ b/Account/Sources/Account/Account.swift @@ -148,7 +148,7 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container, public var sortedFolders: [Folder]? { if let folders = folders { - return Array(folders).sorted(by: { $0.nameForDisplay < $1.nameForDisplay }) + return Array(folders).sorted(by: { $0.nameForDisplay.caseInsensitiveCompare($1.nameForDisplay) == .orderedAscending }) } return nil }