bug fix: sort() compare func. should return a value 1/0 not true/false

This commit is contained in:
Dooho Yi 2021-12-01 13:48:31 +00:00
parent 9512004e93
commit a5206d7b07

View file

@ -17,7 +17,7 @@ ed_resquest.onload = function() {
Object.entries(event_list)
.sort(function(a, b) {
return a[1].number < b[1].number
return b[1].number - a[1].number
})
.forEach(function(item) {