Sort the theme names
This commit is contained in:
parent
39c9cc440c
commit
622c3b0240
|
@ -100,9 +100,9 @@ private extension ArticleThemesManager {
|
||||||
|
|
||||||
func updateThemeNames() {
|
func updateThemeNames() {
|
||||||
let updatedThemeNames = allThemePaths(folderPath).map { ArticleTheme.themeNameForPath($0) }
|
let updatedThemeNames = allThemePaths(folderPath).map { ArticleTheme.themeNameForPath($0) }
|
||||||
|
let sortedThemeNames = updatedThemeNames.sorted(by: { $0.compare($1, options: .caseInsensitive) == .orderedAscending })
|
||||||
if updatedThemeNames != themeNames {
|
if sortedThemeNames != themeNames {
|
||||||
themeNames = updatedThemeNames
|
themeNames = sortedThemeNames
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue