0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 02:30:43 -05:00

Fix mod sort order (#1104)

Make sure mods are in proper alphabetical order, fsExtra is throwing
special characters last for some reason

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
This commit is contained in:
DrakiaXYZ 2025-02-04 13:02:48 -08:00 committed by GitHub
parent bdeddde1ff
commit fc1072c91e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -363,6 +363,7 @@ export class FileSystem {
.map((dirent) => path.join(dirent.parentPath, dirent.name).replace(/\\/g, "/"))
// Optionally remove the input directory from the path.
.map((dir) => (includeInputDir ? dir : dir.replace(directoryNormalized, "")))
.sort()
);
}
}

View File

@ -353,6 +353,7 @@ export class FileSystemSync {
.map((dirent) => path.join(dirent.parentPath, dirent.name).replace(/\\/g, "/"))
// Optionally remove the input directory from the path.
.map((dir) => (includeInputDir ? dir : dir.replace(directoryNormalized, "")))
.sort()
);
}
}