Skip to content

Commit b17fe57

Browse files
committed
Remove .toSorted() use
1 parent b2672d9 commit b17fe57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/package-manager-detector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export async function detect({
219219
if (Array.isArray(browserslistQuery)) {
220220
const browserslistTargets = browserslist(browserslistQuery)
221221
.map(s => s.toLowerCase())
222-
.toSorted(alphaNumericComparator)
222+
.sort(alphaNumericComparator)
223223
const browserslistNodeTargets = browserslistTargets
224224
.filter(v => v.startsWith('node '))
225225
.map(v => v.slice(5 /*'node '.length*/))

0 commit comments

Comments
 (0)