mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'dev-settings-on-top' into dev
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user