Skip to content

Commit

Permalink
Fix mod sort order (#1104)
Browse files Browse the repository at this point in the history
Make sure mods are in proper alphabetical order, fsExtra is throwing
special characters last for some reason

---------

Co-authored-by: DrakiaXYZ <[email protected]>
  • Loading branch information
DrakiaXYZ and DrakiaXYZ authored Feb 4, 2025
1 parent bdeddde commit fc1072c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions project/src/utils/FileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
}
1 change: 1 addition & 0 deletions project/src/utils/FileSystemSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
}

0 comments on commit fc1072c

Please sign in to comment.