bug fix: sort() compare func. should return a value 1/0 not true/false
This commit is contained in:
parent
9512004e93
commit
a5206d7b07
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ ed_resquest.onload = function() {
|
||||||
Object.entries(event_list)
|
Object.entries(event_list)
|
||||||
|
|
||||||
.sort(function(a, b) {
|
.sort(function(a, b) {
|
||||||
return a[1].number < b[1].number
|
return b[1].number - a[1].number
|
||||||
})
|
})
|
||||||
|
|
||||||
.forEach(function(item) {
|
.forEach(function(item) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue