mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Sort the theme names
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user