fix sorting in codex on rating best > worst
This commit is contained in:
parent
aa4381bc32
commit
8904df8297
|
@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded",function() {
|
|||
"name": (a, b) => a.querySelector('.name').innerHTML.toLowerCase() > b.querySelector('.name').innerHTML.toLowerCase(),
|
||||
"hours": (a, b) =>toI(a, 'hours') > toI(b, 'hours'),
|
||||
"date": (a, b) => a.querySelector('.date').dateTime.localeCompare(b.querySelector('.date').dateTime),
|
||||
"rating": (a, b) => toI(a, 'rating') > toI(b, 'rating')
|
||||
"rating": (a, b) => toI(b, 'rating') > toI(a, 'rating')
|
||||
}
|
||||
|
||||
articles.sort(sorts[by])
|
||||
|
|
Loading…
Reference in New Issue