File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 1- exports . alphasort = alphasort
2- exports . alphasorti = alphasorti
31exports . setopts = setopts
42exports . ownProp = ownProp
53exports . makeAbs = makeAbs
@@ -17,12 +15,8 @@ var minimatch = require("minimatch")
1715var isAbsolute = require ( "path-is-absolute" )
1816var Minimatch = minimatch . Minimatch
1917
20- function alphasorti ( a , b ) {
21- return a . toLowerCase ( ) . localeCompare ( b . toLowerCase ( ) )
22- }
23-
2418function alphasort ( a , b ) {
25- return a . localeCompare ( b )
19+ return a . localeCompare ( b , 'en' )
2620}
2721
2822function setupIgnores ( self , options ) {
@@ -150,7 +144,7 @@ function finish (self) {
150144 all = Object . keys ( all )
151145
152146 if ( ! self . nosort )
153- all = all . sort ( self . nocase ? alphasorti : alphasort )
147+ all = all . sort ( alphasort )
154148
155149 // at *some* point we statted all of these
156150 if ( self . mark ) {
Original file line number Diff line number Diff line change @@ -51,8 +51,6 @@ var assert = require('assert')
5151var isAbsolute = require ( 'path-is-absolute' )
5252var globSync = require ( './sync.js' )
5353var common = require ( './common.js' )
54- var alphasort = common . alphasort
55- var alphasorti = common . alphasorti
5654var setopts = common . setopts
5755var ownProp = common . ownProp
5856var inflight = require ( 'inflight' )
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ var path = require('path')
1111var assert = require ( 'assert' )
1212var isAbsolute = require ( 'path-is-absolute' )
1313var common = require ( './common.js' )
14- var alphasort = common . alphasort
15- var alphasorti = common . alphasorti
1614var setopts = common . setopts
1715var ownProp = common . ownProp
1816var childrenIgnored = common . childrenIgnored
You can’t perform that action at this time.
0 commit comments