Commit 66c102e 1 parent 37b44c1 commit 66c102e Copy full SHA for 66c102e
File tree 3 files changed +2
-12
lines changed
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
3
1
exports . setopts = setopts
4
2
exports . ownProp = ownProp
5
3
exports . makeAbs = makeAbs
@@ -17,12 +15,8 @@ var minimatch = require("minimatch")
17
15
var isAbsolute = require ( "path-is-absolute" )
18
16
var Minimatch = minimatch . Minimatch
19
17
20
- function alphasorti ( a , b ) {
21
- return a . toLowerCase ( ) . localeCompare ( b . toLowerCase ( ) )
22
- }
23
-
24
18
function alphasort ( a , b ) {
25
- return a . localeCompare ( b )
19
+ return a . localeCompare ( b , 'en' )
26
20
}
27
21
28
22
function setupIgnores ( self , options ) {
@@ -150,7 +144,7 @@ function finish (self) {
150
144
all = Object . keys ( all )
151
145
152
146
if ( ! self . nosort )
153
- all = all . sort ( self . nocase ? alphasorti : alphasort )
147
+ all = all . sort ( alphasort )
154
148
155
149
// at *some* point we statted all of these
156
150
if ( self . mark ) {
Original file line number Diff line number Diff line change @@ -51,8 +51,6 @@ var assert = require('assert')
51
51
var isAbsolute = require ( 'path-is-absolute' )
52
52
var globSync = require ( './sync.js' )
53
53
var common = require ( './common.js' )
54
- var alphasort = common . alphasort
55
- var alphasorti = common . alphasorti
56
54
var setopts = common . setopts
57
55
var ownProp = common . ownProp
58
56
var inflight = require ( 'inflight' )
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ var path = require('path')
11
11
var assert = require ( 'assert' )
12
12
var isAbsolute = require ( 'path-is-absolute' )
13
13
var common = require ( './common.js' )
14
- var alphasort = common . alphasort
15
- var alphasorti = common . alphasorti
16
14
var setopts = common . setopts
17
15
var ownProp = common . ownProp
18
16
var childrenIgnored = common . childrenIgnored
You can’t perform that action at this time.
0 commit comments