Skip to content

Commit c7cb4c7

Browse files
committed
The sort method should return an int not a boolean
- This affects the sorting of news version which are intended to be sorted numerically rather than lexicographically.
1 parent bf8ef4c commit c7cb4c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ function getFileList(location, pattern, handler, errorHandler) {
722722
}
723723

724724
const entries = [...map].sort((a, b) => {
725-
return a[0] < b[0]
725+
return b[0] - a[0]
726726
}).map(entry => entry[1]);
727727

728728
handler(entries);

0 commit comments

Comments
 (0)