ColorSchemeService: sort themes alphabetically

This commit is contained in:
Ly-sec
2025-10-04 00:21:59 +02:00
parent 604b9c665f
commit 2115ef4792
+5
View File
@@ -101,6 +101,11 @@ Singleton {
var files = output.split('\n').filter(function (line) {
return line.length > 0
})
files.sort(function (a, b) {
var nameA = getBasename(a).toLowerCase()
var nameB = getBasename(b).toLowerCase()
return nameA.localeCompare(nameB)
})
schemes = files
scanning = false
Logger.log("ColorScheme", "Listed", schemes.length, "schemes")