CODEBASE: Fix inconsistent generated pages.ts (#2236)

This commit is contained in:
catloversg
2025-07-11 04:21:08 +07:00
committed by GitHub
parent 46d4dc9725
commit c5799616ce
2 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ const processDir = (dir) => {
return;
}
console.log(dir);
for (const file of fs.readdirSync(dir)) {
for (const file of fs.readdirSync(dir).sort((a, b) => a.localeCompare(b, "en-US"))) {
const filePath = path.join(dir, file);
if (fs.lstatSync(filePath).isDirectory()) {
processDir(filePath);