fix sorting in codex on rating best > worst

This commit is contained in:
Wouter Groeneveld 2023-12-26 18:56:47 +01:00
parent aa4381bc32
commit 8904df8297
1 changed files with 1 additions and 1 deletions

View File

@ -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])