Comparing version 4.2.1 to 4.2.2
@@ -37,9 +37,7 @@ exports.alphasort = alphasort | ||
function alphasorti (a, b) { | ||
a = a.toLowerCase() | ||
b = b.toLowerCase() | ||
return alphasort(a, b) | ||
return a.toLowerCase().localeCompare(b.toLowerCase()) | ||
} | ||
function alphasort (a, b) { | ||
return a > b ? 1 : a < b ? -1 : 0 | ||
return a.localeCompare(b) | ||
} | ||
@@ -46,0 +44,0 @@ |
@@ -53,3 +53,2 @@ // Approach: | ||
var alphasort = common.alphasort | ||
var alphasorti = common.alphasorti | ||
var isAbsolute = common.isAbsolute | ||
@@ -454,3 +453,3 @@ var setopts = common.setopts | ||
else | ||
self._readdirEntries(abs, entries, cb) | ||
self._readdirEntries(abs, entries.sort(alphasort), cb) | ||
} | ||
@@ -457,0 +456,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "a little globber", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -13,3 +13,2 @@ module.exports = globSync | ||
var alphasort = common.alphasort | ||
var alphasorti = common.alphasorti | ||
var isAbsolute = common.isAbsolute | ||
@@ -240,3 +239,3 @@ var setopts = common.setopts | ||
try { | ||
return this._readdirEntries(abs, fs.readdirSync(abs)) | ||
return this._readdirEntries(abs, fs.readdirSync(abs).sort(alphasort)) | ||
} catch (er) { | ||
@@ -243,0 +242,0 @@ this._readdirError(abs, er) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46700
1007