Merge branch 'dev-settings-on-top' into dev

This commit is contained in:
SillyLossy
2023-03-21 12:53:47 +02:00
79 changed files with 535 additions and 473 deletions

View File

@ -968,9 +968,11 @@ function getCharacterFile(directories, response, i) { //old need del
}
}
function getImages(path) {
return fs.readdirSync(path).sort(function (a, b) {
return new Date(fs.statSync(path + '/' + a).mtime) - new Date(fs.statSync(path + '/' + b).mtime);
}).reverse();
return fs.readdirSync(path).sort(Intl.Collator().compare);
/* return fs.readdirSync(path).sort(function (a, b) {
return new Date(fs.statSync(path + '/' + a).mtime) - new Date(fs.statSync(path + '/' + b).mtime);
}).reverse(); */
}
function getKoboldSettingFiles(path) {
return fs.readdirSync(path).sort(function (a, b) {