Sort the theme names

This commit is contained in:
Maurice Parker 2021-09-08 20:02:38 -05:00
parent 39c9cc440c
commit 622c3b0240
1 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,9 @@ private extension ArticleThemesManager {
func updateThemeNames() {
let updatedThemeNames = allThemePaths(folderPath).map { ArticleTheme.themeNameForPath($0) }
if updatedThemeNames != themeNames {
themeNames = updatedThemeNames
let sortedThemeNames = updatedThemeNames.sorted(by: { $0.compare($1, options: .caseInsensitive) == .orderedAscending })
if sortedThemeNames != themeNames {
themeNames = sortedThemeNames
}
}