sort tests

This commit is contained in:
Tony Brix 2018-01-06 21:09:49 -06:00
parent ba2645774d
commit bf4022e00d

View File

@ -33,11 +33,7 @@ function load() {
.filter(function(file) {
return path.extname(file) !== '.html';
})
.sort(function(a, b) {
a = path.basename(a).toLowerCase().charCodeAt(0);
b = path.basename(b).toLowerCase().charCodeAt(0);
return a > b ? 1 : (a < b ? -1 : 0);
});
.sort();
i = 0;
l = list.length;