Skip to content

Commit 2ead310

Browse files
committed
fix: use localeCompare to sort packages by path
1 parent 2288513 commit 2ead310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/collect-packages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function collectPackages({ packageConfigs, rootPath }) {
5656
{ concurrency: 4 }
5757
).then(results => {
5858
// fast-glob does not respect pattern order, so we re-sort by absolute path
59-
const lexicalByLocation = (a, b) => b.location < a.location;
59+
const lexicalByLocation = (a, b) => a.location.localeCompare(b.location);
6060

6161
return results.reduce((pkgs, result) => pkgs.concat(result.sort(lexicalByLocation)), []);
6262
});

0 commit comments

Comments
 (0)