Skip to content

Commit e219fa1

Browse files
committed
fixed disk files sorting. updated .gitignore
1 parent b15464b commit e219fa1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ dist
55
.history
66
dist/
77
.vscode
8+
.npmrc
89
Resources
910
temp

index.js

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ function listFolder(folder) {
2121
})
2222
// Filter out dot files
2323
files = files.filter(f => f.indexOf('.') !== 0)
24+
25+
// Sort alphabetically in case-insensitive fashion
26+
files.sort(function (a, b) {
27+
return a.localeCompare(b);
28+
});
2429
return files
2530
}
2631

0 commit comments

Comments
 (0)